PRB: Error Setting Partition of Grid Too Wide at Design Time (168196)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- Microsoft Visual FoxPro for Windows 3.0b, when used with:
- the operating system: Microsoft Windows NT
- the operating system: Microsoft Windows 95
- Microsoft Visual FoxPro for Macintosh 3.0b
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.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kberrmsg kbprb KB168196 |
---|
|