Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement