Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I build a method on the fly?
Message
From
23/10/2002 21:25:40
 
 
To
23/10/2002 16:13:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714534
Message ID:
00714625
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform