Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT() Problem
Message
 
To
07/07/2003 21:21:52
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00807775
Message ID:
00807783
Views:
18
No. Just the class/classlibrary names.

>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
>>
Cheers,
Jamie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform