Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP3.0 Adding a column to a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00023891
Message ID:
00023901
Vues:
23
>>>When I try to add a column to an old grid to display a field I recently added to the table, I get a "A member object with this name already exists" error. Re-creating the grid from the beginning is a bit of a bother. How do I get around this error?
>>
>>Check Grid.Column.Name properties and make them specific, e.g. colField1,colField2, etc.
>My columns are named Column1, column2, ...column61. That is the default. The names are not original, but they are unique. Each one has a text box named text1 in it. It would be a bother to change the names of 61 text boxes.
>It occurs to me that I succeeded in adding a column before. It became Column 10 (one which had been deleted before, I guess). I got the error when I tried to add another column.

check the column's objects names -- it may already be there.

you can view forms in the class browser -- display code and search for object name will be faster than checking under each col.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform