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"
lcMethods = methods
....
....
use
>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