Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty Textboxes
Message
 
À
20/09/2002 12:04:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00702817
Message ID:
00702833
Vues:
11
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform