Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add code to all controls
Message
De
11/12/2003 17:36:45
 
 
À
11/12/2003 17:14:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00858363
Message ID:
00858394
Vues:
19
I'll have to lookup help on bindevent and see if I can locate examples. I played with it when VFP8 was first released, but not since...

>>I don't want it on every form in the project though (only one) and the textboxes already exist ON this form and there are 7 pages and hundreds of textboxes...
>>
>>I was hoping to issue something in the init of the form after DODEFAULT() that would step through all of the controls and add the code to the valid that time...
>
>Then Bindevent() will do it. Recurse through all textboxes you got on that form (somewhere by the end of form.init) and bindevent the textbox.valid to your form's method. Don't have VFP8 here, but I seem to remember that there was an extra parameter to tell the bound code whether it should run before or after local code in the event.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform