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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for blank text fields

Status
Not open for further replies.

Hskrdoo

Programmer
Aug 27, 2001
13
0
0
US
I have a form with 5 input text fields. I have a button offstage and I want it to check to make sure all fields are filled in before the user can continue. If they are all filled in, I want it to let the user press Enter to proceed. I know I probably need to use a "variable.length==true" command or something like that. Any help would be greatly appreciated.
 
Try...

if(variable!=""){
}


which checks to make sure that there is some content in the variable before you continue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top