PRB: "Member Column<n> is a class member" Error MessageID: Q130414 3.00 WINDOWS
The information in this article applies to:
SYMPTOMSChanging the ColumnCount property of a grid class, subclassed onto a form, to a value less than the one already set for the grid class when it was created results in this error:
CAUSEYou cannot delete members from an instantiated object that are members of the base class.
STATUSThis behavior is by design.
MORE INFORMATIONWhen you insert a Grid class into a form, you cannot change the ColumnCount property to a value less than the one that was set when the Grid class was created. If you do so, the "Member COLUMN<n> is a class member" error message is displayed. In this error, <n> is a number that is one greater than the ColumnCount value you are trying to set for the Grid class in the form. For example if ColumnCount for the Grid class was set to 3 when it was created, and you change it to 2, 1, or 0 when placed in a form, then the value of <n> in the error message will be 3, 2, or 1 respectively.
Steps to Reproduce Behavior1. Create a Grid class with three columns. 2. Create a form. 3. Drop an instance of the Grid class onto the form, and populate the 4. Save and run the form. Everything works as expected.
5. Modify the form. 6. Change ColumnCount for the grid to 2. The error "Member COLUMN3 is a NOTE: If the ColumnCount is changed to 1, the error message is "Member
COLUMN2 is a class member."
Additional reference words: 3.00 VFoxWin KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |