PRB: Error setting partition of grid too wide at design time |
ID: Q170167
In Visual FoxPro version 3.0 for Windows or Macintosh, sizing the partition of a grid in the Form Designer beyond a certain size, usually in the range of 300 to 330 pixels, causes one of the following to occur at run time:
Error loading file - Partition - record number <n>. Expression evaluated to an illegal value.
-or-
If it's Visual FoxPro for Windows version 5.0, no error is returned, but if the partition is above the threshold, the partition is set to zero.The partition number is reset to zero and a normal grid is displayed at run time.
If the partition needs to be set to a large number in the range between 300 to 350 pixels, set the Partition property of the grid in the Init event of the grid. For example, use the following code to set the partition at half the width of the grid:
Thisform.Grid1.Partition = Thisform.Grid1.Width / 2
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The Partition property specifies whether or not a Grid control is split
into two panels and specifies where the split is relative to the left edge
of the grid.
Once the above error is received, the form cannot be opened even in the
Form Designer without receiving the error again. To work around this error,
the form must opened as a table by issuing USE <formname>.SCX in the
Command window. Then go to the record listed in the error message and open
the Properties memo field and change the "Partition = " line to 0 or at
least a smaller value.
NOTE: Setting the form's ScaleMode to foxels from pixels has no effect on
this problem
For more information about the Grid control and Partition property, please refer to the Visual FoxPro Help.
Additional query words:
Keywords : kberrmsg kbHWMAC kbVFp _IK
Version : MACINTOSH:3.0b; WINDOWS:3.0,3.0b
Platform :
Issue type : kbprb
Technology :
|
Last Reviewed: September 30, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |
|
Article ID: Q170167
Last Reviewed:
|