Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gotcha in grid
Message
 
À
25/11/1998 14:49:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00161419
Message ID:
00161727
Vues:
22
>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.

David,
I changed the baseclass to ColumnCount = 2, my class instance had ColumnCount = 4, I'm aware you can't remove members which is why I posted the message, I would be grateful if you could try to repeat my findings, BTW any change you make will incur this message, all I did was change the form caption containing a grid of the same class

Thanks a lot
Pete Kane
Regards,
Peter J. Kane



Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform