Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NEWOBJECT() Problem
Message
De
07/07/2003 21:21:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00807775
Message ID:
00807780
Vues:
16
Is there a hardcoded path being assigned to this.cLocDatLib and this.cRemDatLib?

Aloha,

James

>I have a situation where I have a .vcx included in an EXE and a NEWOBJECT() call instantiating a class in that library which fails because the classlibrary can't be found. How is this possible ?
>
>Code fragment:
>
>  *-- The 2 parameters are defintely correct. If I break and
>  *-- type the command with literals in the command window
>  *-- I get the same problem.
>
>  *-- eg. This.cLocDatClass = "cdatShiftLocal"
>  *--     This.cLocDatLib = "cLocalData.vcx"
>
>  IF UPPER(this.oEnv.cData) = "LOCAL"
>    this.oData = NEWOBJECT(this.cLocDatClass,this.cLocDatLib)
>  ELSE
>    this.oData = NEWOBJECT(this.cRemDatClass,this.cRemDatLib)
>  ENDIF
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform