Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATEOBJECT() failing with no error message?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
CREATEOBJECT() failing with no error message?
Miscellaneous
Thread ID:
00188404
Message ID:
00188404
Views:
51
We have a very large app created in VFP 5.0a (we'll be moving to VFP6 shortly). One of the classes we have designed handles printing of reports, and the way that you use it is to create an instance of it, then set properties and call a method. An example of what this might look like is this:

loPrintGen = CREATEOBJECT("cnPrintGen")
loPrintGen.GetSettings = .T.
...

We have several clients who are getting the error "LOPRINTGEN is not an object" on the second line above.

I'm at a loss to explain how that could possibly happen - it's as if the CREATEOBJECT() function was not creating the object for some reason and not reporting any error of its own. And yes, I've double checked the Init and Load methods of the class - they never, ever return false.
Next
Reply
Map
View

Click here to load this message in the networking platform