PRB: Error Instantiating Object (138043)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q138043 SYMPTOMS
CreateObject(), when used with a class defined from a wizard-generated
form, produces this error:
Error Instantiating Object
CAUSE
When you save a form as a class, you lose the DataEnvironment information.
Also, the wizard-generated code is brought beyond its original scope,
therefore an instance cannot be generated.
RESOLUTION
Recreate the original form by hand, and then recreate the class. Creating
the DataEnvironment before instantiating the object will get you around the
error, but not the loss of functionality and other wizard-generated form
class issues.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 8/27/2002 |
---|
Keywords: | KB138043 |
---|
|