PRB: Cannot Open Form That Has =CREATEOBJECT() Property ValueID: Q148331 3.00 3.00b WINDOWS kbtool kbprb The information in this article applies to:
SYMPTOMSIf a form property is assigned the value =CREATEOBJECT(<classname>) with the WriteExpression() method, the form can no longer be opened in the Form Designer. If an attempt is made to open the form, the error message "Data type is invalid for this property" is displayed and the Form Designer is not opened.
CAUSEAlthough WriteExpression allows storing an object reference to a form property, this is not valid in Visual FoxPro.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a program that contains the following code:
2. Run the program.
3. Try to open the Myform form in the Form Designer by choosing Open from NOTE: If =CREATEOBJECT(<classname>) is entered through the property sheet,
the error message is displayed and the property is reset to its original
value.
How to Repair the FormIf the form cannot be opened (as described in Step 3), you can repair it by using this procedure: 1. Make a backup copy of the form's .scx and .sct files:
2. Open the form's .scx file as a table by entering the following commands
3. Double-click the word Memo. Then find and remove the following line
4. Type a USE command in the Command window to close the .scx file. You
Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kbtool kbprb
KBSubcategory: FxtoolFormdes
|
Last Reviewed: March 15, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |