Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty Textboxes
Message
 
To
20/09/2002 12:04:27
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00702817
Message ID:
00702833
Views:
10
Something like:
llempty=.f.
for ia=1 to thisform.controlCount
if thisform.Controls(ia).BaseClass="Textbox" and empty(thisform.Controls(ia).Value)
llempty=.t.
EXIT
endif
endfor
if llempty
thisform.Controls(ia).setfocus
endif

>Is there a way I can have my app check to determine if any fields are left empty on a form. If it finds a field that is empty, the user shoudl be prompted and the textbox that the has that field as a control source should be setfocused. Any ideas?
Previous
Reply
Map
View

Click here to load this message in the networking platform