Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Methods programmaly
Message
From
06/03/1999 15:33:56
 
 
To
06/03/1999 13:16:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00194816
Message ID:
00194903
Views:
25
>Jan --
>
>Craig is right, the answer is no. But you may be able to redirect what a method does via flags and branching or mediation.
>

I've played with CodeBlock it's a bit of a kludge, but it can be made to work if you build in some hooks in your existing methods to redirect to execution via CodeBlock - for example, check the name of a custom property, and if it's filled, treat it as the name of a procedure to execute via CodeBlock. Elegant it isn't, but it does work within the limits of the hooks you set up in your class definition.

>>Is it possible to change the contens off a method
>>during run time.
>>
>>Kind regards
>>
>>
>>Jan Dorresteijn.
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