Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate entry data in a Grid
Message
From
16/10/2007 14:25:10
 
 
To
15/10/2007 23:07:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01261175
Message ID:
01261324
Views:
6
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
Map
View

Click here to load this message in the networking platform