Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Method code at runtime??
Message
De
08/07/1998 22:31:45
 
 
À
08/07/1998 13:24:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00114464
Message ID:
00115566
Vues:
25
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform