Hi Anthony,
>Now whe I run this code what is happening? I was thinking that a junk.vcx would appear on my hard drive, so I could add it to my project no such luck. So please tell me oh-wise ones what should I be doing to get this to work?
In VFP there are two possibilities to create a class: a) in the Class Designer (VCX) or b) in a program file (PRG). You created the latter. In order to add this class to your project, you have to add the PRG file, ie. Test.Prg. When you want to create the class, you can use in VFP 5:
SET PROCEDURE TO Test.Prg ADDITIVE
oObj = CREATEOBJECT("Junk")
or in VFP 6:
oObj = NEWOBJECT("Junk","Test.Prg")
Christof
--
Christof