Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding BINDEVENT()
Message
 
 
À
30/05/2012 17:13:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01544852
Message ID:
01544855
Vues:
53
>I could use some help on understanding BINDEVENT
>
>I have a grid with 30 columns or so. I would like the VALID event for each text box to call a form method. In the form Init I have
>WITH myGrid
>    FOR I = 1 TO 30
>        oCol = EVAL("column"+TRANSFORM(I))
>        oCol.controlsource = "something"
>        BINDEVENT(ocol.text1,"valid",thisform,"calc_bld_qty")
>    ENDFOR
>ENDWITH
>
>For the moment CALC_BLD_QTY is just a Messagebox.
>
>If I put a value in the cell and press ENTER/ARROW/TAB etc nothing happens.
>
>If I put something in the Valid code for the TextBox (for example another Messagebox), then CALC_BLD_QTY fires and then the other Messagebox fires.
>
>What have I missed in the proper way to set this up?
>
>Thanks to all..........Rich

I do a similar thing but for the InteractiveChange event and it does fire.

Also, see some sample code here
http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/grid-class-that-allows-sorting-by-clicki
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform