Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Hi Carlos,
If I understand you correctly you want to validate the value of the “Text1” object in the grid, which you created programmatically. You can bind the lostFocus event of the “Text1” object to the method on the form. Create the method on the form let say the name of the method is mHandleGridTextValid.
After grid is created bind one or all “Text1” objects like this:
FOR EACH loCLMNS IN ThisForm.grdCustom.Columns
BINDEVENT(loCLMNS.Text1,"LostFocus",ThisForm," mHandleGridTextValid ")
NEXT
Place your validation code into the mHandleGridTextValid method on the form. Use =AEVENTS(laObject,0) && this will create an array
lObject=laObject(1) && this will show which object lostfocus.
I hope this helps.
Yelena
>Hi everyone
>
>I have populated a Grid object with code and need to validate the data entry, like this:
>
>with thisform.MyGrid
>.Columm.text1.....
>
>&& How to valid? may be: .column.text1.valid ???? don´t know
>
>endwith
>
>But can´t find the exact way to do it. Somebody can help me, please?
>
>Thanks in advance
>Carlos Burgos
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