Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Method code at runtime??
Message
From
08/07/1998 22:31:45
 
 
To
08/07/1998 13:24:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00114464
Message ID:
00115566
Views:
26
>As many have already stated, unless your code is simple, one-liners that can be EVAL'd or macro expanded, you need to compile it. Fox won't let you compile from an EXE because if you could, only one person in the world would have to buy Fox and then just distribute all of us a small EXE for us to compile our code with <g>.


This is only partially true due to a creation called codeblock written by Randy Pearson. Codeblock receives a string as a parameter and parses it into separate EVALable lines. It handles structures like IF ELSE ENDIF and DO CASE. Pretty cool. YOu can store code in a memo field and pass it to codeblock to be evaluated. There are still a few situations that it can't handle, but all in all its pretty effective. This was the magic behind Ken Levy's demo at DevCon where he was changing the business rules of the app generating a web page from the same web page. Pretty impressive.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform