Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NEWOBJECT
Message
 
 
À
09/11/2001 15:15:28
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00579908
Message ID:
00579914
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform