Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add Code to a method at runtime
Message
De
06/08/2004 15:49:41
 
 
À
06/08/2004 15:44:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00931413
Message ID:
00931414
Vues:
16
>How can do this? TIA

You can use EXECSCRIPT() function to execute several lines of code that you've put together in a string. Or, you can create a .prg file on the fly and run it (pretty much the same as EXECSCRIPT()).

Or, can even define a class definition in a .PRG file at runtime (DEFINE CLASS....), and use NEWOBJECT() to get an object from that definition.

Lot's of flexibility....

Is that the sort of thing your looking for?
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform