Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force combobox validation
Message
From
07/02/2006 03:13:00
 
 
To
07/02/2006 00:19:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01094196
Message ID:
01094206
Views:
11
>Hello,
>
>Is it possible to force the valid event of a combobox to run , eventhough the user hasn't changed its value?
>
>Thanks

No metter if the value is changed or not when the Combo has the focus when the user try to change it Valid Event is Fired. If you want to do this programaticly w/o Combo got the focus do something like:
IF NOT thisform.Combo1.Valid()
   *** Message Here 
   thisform.Combo1.SetFocus()
ENDIF
It is better to put Validation of the combo in some Form method, something like:
*** Combo Valid
RETURN thisform.ValidOfCombo()

*** Then the code above will looks like:

IF NOT thisform.ValidOfCombo()
   *** Message Here 
   thisform.Combo1.SetFocus()
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform