Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force combobox validation
Message
De
07/02/2006 03:13:00
 
 
À
07/02/2006 00:19:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01094196
Message ID:
01094206
Vues:
9
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform