Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add code to all controls
Message
De
11/12/2003 17:14:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
11/12/2003 17:06:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00858363
Message ID:
00858379
Vues:
15
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform