Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I clear textbox controls?
Message
From
12/11/1997 08:55:57
 
 
To
12/11/1997 01:38:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059638
Message ID:
00059672
Views:
40
>I want to clear textbox controls after fill out a form for filling out the same form again but with textbox controls cleared.
>what do I have to do?
Hi Alberto.

Are the textboxes on the form bound to a table? Are you adding a new record to the table? If so, try thisform.Refresh() after you append blank. If the textboxes aren't bound, you will have to go through something like:
for lni = 1 to thiform.controlcount
     thisform.controls[i].value = ""
endfor
Of course, this only works if all the controls have values that are character. You really should check for type(thisform.controls[i]) and take appropriate action in a case statement. And thisform.refresh() afterward.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform