Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add code to all controls
Message
 
 
À
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:
00858373
Vues:
23
Sorry, that should been in the VALID. You might also add a _PostValidHook method to that control where all the design time VALID code goes. So the VALID code in your Textbox baseclass would look like:
IF PEMSTATUS(THISFORM, 'mCalendorse', 5)
   THISFORM.mCalendorse = .T.
ENDIF
IF NOT THIS._PostValidHook()
   RETURN 0
ENDIF
You can then protect the Valid of the taxtbox baseclass to prevent its use at design time.

>I would like to programmatically add code to all textbox controls on a form. Ideally, the textbox valids would have:
>
>
>THISFORM.mcalendorse=.T.
>
>
>so that whenever a user keys through a textbox control on the form, the form's value of mcalendorse is set to true. It needs to go BEFORE any other existing code already in the valid. I need to know if the user keyed through the text box controls at all. Can .setall be used for this? How to do it ?
>
>TIA,
>Tracy
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform