Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add code to all controls
Message
De
11/12/2003 16:59:23
 
 
À
11/12/2003 16:26:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00858363
Message ID:
00858374
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
Perhaps the 'ReadMethod' & 'WriteMethod' Methods?

Grab a design time reference to the form with:
=ASELOBJ(gaobj,1)

Then iterate through the controls and use the 'ReadMethod' to get the pre-existent code into a variable and concatenate your additional code:

LcDesiredCode = “THISFORM.mcalendorse=.T.” + CHR(13) ;
+ oControl.ReadMethod(“VALID”)

oControl.WriteMethod(“VALID”, LcDesiredCode)
Thank you,
- Frank
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform