Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT() Problem
Message
From
07/07/2003 22:14:01
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00807775
Message ID:
00807801
Views:
19
What about spaces in the file names or other characters that would throw off a pathing error?

Aloha,

James

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

Click here to load this message in the networking platform