Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot remove header obj from grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00798376
Message ID:
00798398
Vues:
30
Can you do this?
for each loColumn in thisform.grid.columns
    loColumn.RemoveObject( "Header1" )	
endfor
or this?
for each loColumn in thisform.grid.columns
    loColumn.RemoveObject( "Header1" )	
    loColumn.AddObject( "Header2", "header" )
endfor
>I am trying to remove Header object from a grid and replace it with a custom object. But I get error on line .AddObject because the .RemoveObject does not remove it (I traced it in debugger)
>
>
>for each loColumn in thisform.grid.columns
>    loColumn.RemoveObject( "Header1" )	
>    loColumn.AddObject( "Header1", "custom_header" )
>endfor
>
>
>The strange thing is that I have used this syntax for years in many many forms without any problems. Yet, for some reason now whenever I create a form, the code does not work.
>
>Anybody can see what might be different in all other forms where the code worked and the ones where code does not work?
>
>TIA.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform