Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating Entries In A TextBox
Message
From
17/10/2001 11:48:00
 
 
To
17/10/2001 11:43:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569648
Message ID:
00569654
Views:
17
>To All:
>Please recommend ways of checking a TextBox to see if it is empty or also that it contains only Alpha characters. The code should then post a MessageBox telling the operator that the field cannot be blank or some character is invalid. Then the cursor should return to the same field to allow correction of the problem. I tried using the Valid event but it pops a nasty little wait window that I would rather not see. I will use this code to check each Textbox on the form.
>

Eric,

In valid, use RETURN 0 (the number zero), instead of RETURN .F.

HTH,
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform