Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy a procedure from a Class to a file?
Message
From
13/09/2004 14:49:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00941661
Message ID:
00941681
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform