PRB: "Error loading file..." When Opening a Form
ID: Q137955
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, version 3.0
SYMPTOMS
When you are trying to open a form for modification, the following error
appears:
Error loading file - ControlSource - record number x (where x is an
integer). Parent will not allow this property setting for
form1.grid1.column1.text1.controlsource.
You can't change the setting because the form will not open.
CAUSE
The form will not open if any errors are detected.
RESOLUTION
- In the Command window, use the USE Myform.scx command to open the form
as a table. Then use the BROWSE command to browse the table.
- Go to the appropriate record that caused the error as indicated in the
error message.
- Modify the Properties memo field by double-clicking it and removing the
line that says ControlSource=.
- Close the Browse window.
- Type USE in the Command window to close the table.
STATUS
This behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a new form called Myform.scx.
- Add a table to the data environment
- Create a grid by dragging the table from the data environment to the
form.
- Change the properties in the following order:
Object Property Value
---------------------------------------------------
Grid1 ColumnCount 1
Grid1.Column1 Bound .F.
Grid1.Column1.Text1 ControlSource <anyfield>
Grid1.Column1 Bound .T.
- Save and close the form.
- Open the form. The error message appears.
Additional query words:
Keywords : kbtool kbVFp FxtoolFormdes
Version : 3.0
Platform : WINDOWS
Issue type : kbprb