Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT
Message
 
 
To
09/11/2001 15:15:28
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00579908
Message ID:
00579914
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform