Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I build a method on the fly?
Message
De
23/10/2002 21:25:40
 
 
À
23/10/2002 16:13:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00714534
Message ID:
00714625
Vues:
16
>Hi, I have a table that contains information that allows me to build an object on a form on the fly (Add controls to a screen). I now need to add code to an interactivechange method (to control other objects on the form) if the control being added is a particular name. What is the easiest way to do this?
>

Are you using VFP7? Depending on performance issues, you might consider creating a class that uses script execution in methods based on the existance of variables or properties in the Form or control (ie create a subclass of the textbox that looks for a property this.cInterActiveChangeScript that is non-empty, and runs the content as a script if it's there...)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform