General information
Category:
Coding, syntax & commands
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only