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

SetALL With Textboxes??

Status
Not open for further replies.

Serincino

Programmer
Jun 13, 2003
61
US
the form I'm on needs to have all textboxes cleared after a command button is clicked. I'm using the following code in the refresh method of the form (which I'm calling during the command buttons click method)

thisform.SetAll('value',"",'textbox')

But it has no effect on the form.

Can some one please tell me what I'm doing wrong. I really don't wanna have to type each line to clear all 25 boxes.

thanks,

Serincino
 
I used this type of setAll and it's working OK. Can your problem be somewhere else? (did you check that the line of code with "setAll" is executed?)

Carmen
 
Serincino

thisform.SetAll('value',"",'textbox')

Is it possible that the baseclass of your textboxes are not the vfp baseclass "textbox"?


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Found the issue. Since I used the form Wizard to create the form, the base class was Embossedfield, not Textbox. Changed that and it works fine.

Thanks for all the help guys.

-Serincino
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top