Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Column not found
Message
From
27/01/1999 12:40:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid Column not found
Miscellaneous
Thread ID:
00180873
Message ID:
00180873
Views:
46
VFP6.0, VS SP1. I have a top-level form with a grid on it instantiated from a grid class I created. All works well until I place a menu in the top-level form.

When I then try to close the form, I get the error message "COLUMNS is not an object.". The code being referenced is in the grid class's Resize event as follows:

WITH THIS
.COLUMNS(1).Width = .Width - .GridBars
ENDWITH

Gridbars is a property of the grid class. This code executes without error on form close until the menu is placed in the form. Then the error occurs.

The menu is placed in the form in the form Init as follows:

DO MAINMENU.MPR WITH THIS, .T.

It is subsequently removed in the Destroy of the form as follows:

RELEASE MENU (THIS.Name) EXTENDED

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Next
Reply
Map
View

Click here to load this message in the networking platform