Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I add some code to multiple methods
Message
 
 
À
14/10/2003 10:12:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00838523
Message ID:
00838635
Vues:
16
Vim,

1) Why not simply change the class that all of these textboxes are based on? If they are not all derived from your own class then why aren't they?

2) it's not good to use a global memvar for this because multiple forms with stomp on each other. It should at least be a form scoped property.

3) You might want to look at the GetFldState() function to determine if there have been any changes to the data. Which can probably get rid of the whole need for the InteractiveChange hook.

>I have a VFP 8 multiple page pageframe that contains about 100 text boxes. I want to stick in a line of code, "m_fieldmodified=.T.", in the interactivechange event of each text box. Many of the text boxes already have text in the interactive change event. Is there a quick way of doing this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform