Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messages of Validations
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00261658
Message ID:
00263066
Views:
25
Hi Jim,

>
>Put your validation code in the valid event. If the data is invalid you can use the MessageBox() function to display any message you like and then RETURN 0 from the valid event. Returning .F. will display the VFP message and retain focus in the control. Returning 0 will NOT dislpay the VFP message but it will retain focus in the control.

And which is better? your solution or putting the validation in the lostfocus event and then issue a this.setfocus() when you have an error???

Regards,
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform