Article ID: 168196
Article Last Modified on 12/3/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition, when used with:
- Microsoft Visual FoxPro 3.0b Standard Edition, when used with:
- Microsoft Visual FoxPro 3.0b for Macintosh
This article was previously published under Q168196
SYMPTOMS
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 errors to occur at run
time:
Error loading file - Partition - record number <n>. Expression evaluated
to an illegal value.
The partition number is reset to zero and a normal Grid is displayed at
run time.
If you're using Visual FoxPro 5.0 for Windows, no error is returned, but if
the partition is above the threshold, the partition is set to zero.
RESOLUTION
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
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCES
For more information about the Grid control and Partition property, please
refer to the Visual FoxPro Help.
Keywords: kberrmsg kbprb KB168196