Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If statment 1

Status
Not open for further replies.

WakePro

Programmer
Oct 27, 2002
23
CA
Hello. I am trying to test if there is something in a dynamic test field. If there is I want to display some information in another dynamic text field. If there is not I dont want to display any thing. How do i do this. I have tried the following

if(_root.txtQty1 != "" || _root.txtQty1 != Null)
{
....
....
....
}
if(_root.txtQty2 != "" || _root.txtQty2 != Null)
{
....
....
}
ect
ect

When i press the button that has this code it loads All the data even if there isnt anything in the txtQty field. is there any way to fix this.

Thanks

 
try this

2 text boxes box1, box2 (variable names)

on (release){
myvar = box1;
if (myvar== undefined){box2="";}else{box2="something";}
}
 
Thanks for the help on the last question. My next question is. Do you know how to round decimal values to 2 decimal places.

eg. 55.99394 -> 55.99

Please let me know if you do.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top