Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to validate entry data in a Grid
Message
De
16/10/2007 14:25:10
 
 
À
15/10/2007 23:07:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01261175
Message ID:
01261324
Vues:
8
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
Fil
Voir

Click here to load this message in the networking platform