Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gotcha in grid
Message
De
25/11/1998 14:49:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00161419
Message ID:
00161548
Vues:
31
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform