Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gotcha in grid
Message
From
25/11/1998 14:49:07
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00161419
Message ID:
00161548
Views:
30
An instance of a class can't have fewer members than the class definition itself. That is, you cannot delete members. This is true of Grids, PageFrames, OptionGroups etc. You can always add members (ie more columns, pages, buttons) in the form designer but you can't remove them (or define them as containing fewer members).

HTH,
DaveR



Hello All,
I discovered this natty little feature in VFP 6 today.

To reproduce:

1) Create a form and add a grid ( based on your grid class ).
2) Close the form.
3) Modify the grid class making ColumnCount = 2 or whatever.
4) Save the class.
5) Open your form make a change to the grid and try to save it.
6) I get the message "Member object removed - cannot complete the save operation (Error 1756)
7) Set the grid class back as before ( ColumnCount = -1 ).
8) Open your form, make a change to the grid and save it.
9) No problem.

Anyone experienced this?

Regards
Pete Kane.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform