Other that a probable typo in your example below, the syntax is correct.
oSample = NEWOBJECT('class_name',
'Misc.vcx')
Is the MISC.VCX in the VFP search path? Does LOCFILE('MISC.VCX') return the fullpath and file without prompting?
>Help... I created a form called sample and saved the form AS a Class. To instantiate the form I tried:
>
>oSample = NEWOBJECT('frmSample',Misc.VCX')
>
>The result is error 1575: "Class definition frmSample is not found".
>
>The Misc.vcx is in the path and the the frmSample class does exist in the class library.
>
>Does the problem relate to trying to instantiate a form? The form is a standard VFP form class.
>
>Any thoughts would be appreciated.
Mark McCasland
Midlothian, TX USA