Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populate method code at runtime
Message
De
24/09/2003 14:52:31
 
 
À
24/09/2003 13:53:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00831921
Message ID:
00831955
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform