Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a procedure from a Class to a file?
Message
De
13/09/2004 14:49:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00941661
Message ID:
00941681
Vues:
11
Steve,

I assume you need to be doing this several times, or you would just copy and paste :)

You can USE the library (the .VCX) file just like any other table. The class field contains the name of the class. You just have to come up with a way to parse the methods field to get only the procedure you need. Use strtofile() to write the result to a .prg file.
use theprices.vcx
locate for upper(objname) = "ALLPRICES"  && take case out of the equation
lcMethods = methods
.... && now you need to find the method
.... && and write to .prg file
use  && close theprices.vcx
>Hi,
>I have a class library called ThePrices, within which I have a class
>called AllPrices, and a procedure called FormatPrices. Is there a way to
>programmtically copy the FormatPrices procedure to a text file?
>Thanks
>Steve
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform