Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populate method code at runtime
Message
From
24/09/2003 14:52:31
 
 
To
24/09/2003 13:53:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00831921
Message ID:
00831955
Views:
10
>I have a table of memo fields containing foxpro code snippets. At runtime, I want to be able to dynamically assign the contents of one of memo fields to a method on my form, then call that method. This is easily enough accomplished with macro substitution when the code is a single line statement, but does not work with more complex code consisting of more then one line. I am running VFP 6. I've heard something similar to this ability exists in newer versions of VFP but upgrading is not an option.

If you have VFP6/SP3 or later, you can write your memo field out to a file, and you can COMPILE that file and then execute it just like any other VFP program.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform