Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing objects on forms from procedures
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00716687
Message ID:
00716750
Vues:
21
Jim,

What you really want to do is create a subclass of the textbox and use that instead of the VFP BaseClass Textbox. Then you can put the code in the subclass's InteractiveChange.

>Is there a trick to referencing objects on forms from a procedure located in the main.prg? I'm able to code [formname.objectname.click] and this works, but [formname.objectname.caption="test"] does not. If there is not an easy way to make that work, what I really need is a way to run the same routine from many fields in the InteractiveChange procedure of each field. Don't want to copy it to each field as it changes often.
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