Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Not Firing in Combobox
Message
From
26/07/2001 11:52:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/07/2001 11:36:56
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00535788
Message ID:
00535808
Views:
12
>I have a Combobox and it receives the Focus when the parent page s activated. If I immediately click on a cancel button on the page the Valid for the Combobox does not run. I thought that when an object lost the focus, the Valid method executed. Wrong? Thanks!
>
>Regards, Renoir

This is no direct answer to your question, but if it is for data validaation, you can greatly simplify validation by doing all validation in a central method, called when the user saves a record.

For instance, one problem if you validate the input for each field is that if the user wants to press "Undo", he first has to provide a valid entry in the current field! Quite illogical for the end-user.

Valid() will also not fire if you press a button (e.g., "Save") which is outside the form - one more reason to do validation only when you save data.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform