General information
Category:
Coding, syntax & commands
Title:
CREATEOBJECT() failing with no error message?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only