FIX: 'Unknown member' Error Loading FormLast reviewed: February 20, 1997Article ID: Q141805 |
The information in this article applies to:
SYMPTOMSWhen attempting to run your form, you get the following error message:
Error loading file - ControlSource - record number 4. Unknown member <member_name>. CAUSEYou have an object on the form that has a ControlSource property that references an object that used to be on the form but was subsequently been deleted and replaced with a object of the same name as the deleted object.
WORKAROUND
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.
MORE INFORMATIONForm objects are added to the end of an .scx file. Because of this, property references are positionally dependent. In the following example, the text box object (object B) placed on the form references the Name property of the check box object (object A). When the form is run, the example works correctly. Removing the text box object from the form and replacing it with an identical object that is still referenced by the text box object moves the position of the check box object from the beginning of the .scx file to a position after the text box. Because of the way objects and property references are processed, when the form is run, you will get the noted error message. The new check box object that is placed on the form is written to the end of the file and is not available when required by the reference in the text box object. Steps to Reproduce Problem
|
KBCategory: kbother kbbuglist kbfixlist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |