>>>Hi Nick ----
>>>
>>>>>When writing custom classes are there advantages/disadvantages to using prg files versus vcx?
>
>I'll play devils' advocate (note: I use .vcx's mostly, myself)
>
>in favor of .prg's:
>
>* If VFP Crashes, a text file (.prg) is mess likely to be corrupted
>* .prgs use (slightly) less disk space (moot point, really)
>* a .prg is easier to pull one particular class from, or to distribute part, but not all of a classlib
>* a .prg is easier to deal with outside of teh VFP environment (email or such)
>
>That said, I do use .vcx's because I like graphical subclassing.
>
>Tim
While I prefer vcx to prg, it is now easier in VFP 6 to have classes in a prg file because of the newobject() function. The second parameter of this function is the file name the object is located in. No need to set classlib to [with respect to vcx], etc.
Mark McCasland
Midlothian, TX USA