The information in this article applies to:
SYMPTOMSCreateObject(), when used with a class defined from a wizard-generated form, produces this error:
CAUSEWhen 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. RESOLUTIONRecreate 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. STATUSThis behavior is by design. MORE INFORMATIONNOTE: The wizard-generated code is no longer part of any explicit event, which causes a number of variables to either fall out of scope, or not be initialized properly, and will result in multiple runtime errors. This will cause the creation of an instance and/or the use of the form as a class to fail. Steps to Reproduce Behavior
Additional query words: VFoxWin
Keywords : FxtoolWizother |
Last Reviewed: August 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |