Information générale
Catégorie:
Codage, syntaxe et commandes
>what is the equavalent command of curobj in Vfp and how to use it, I am working on a form and what i want to do is when i click the save button i want to create a validation where in if one input variable is empty it will display a message and the control or cursor will go back to the empty input variable. I have done this kind of validation in fpd 2.6 using _curobj and objnum.
There is no _CUROBJ; since each method corresponds to an object, _CUROBJ is THIS.
For your needs, the CLICK method of the SAVE button could have something like:
IF such variable is empty
display an error message
THISFORM.variable.SetFocus()
ENDIF
HTH!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement