Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code that makes a column visible
Message
De
24/11/2006 05:40:40
 
 
À
23/11/2006 18:21:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01172161
Message ID:
01172227
Vues:
18
>>Hi. I have code in a method that reads someething like:
>>ThisForm.pgItems.conItems.grdQuoteList.Column9.visible = .t.
>>
>>When I run the code, I get the message that Column9 is not found.
>>
>>Does anyone have any ideas how I can make column9 visible (with no error).
>>
>>Thanks, Randy
>
>Randy,
>In VFP7 making a column.visible = .f. is nonsense

Well not really. It leaves the column as-is but disappears the data in the column.
Randy, you sure you haven't renamed the column like ".colQuoteVal"?)

You can always access the nth column via the .columns() array.

i.e. ThisForm.pgItems.conItems.grdQuoteList.Columns( 9).visible = .t.

However it won't disappear the col. I'd suggest Fabio's .Width soln.

>>


so I think you don't have that column at all. If you mean you have less than 9 columns then you can do:
>.ColumnCount = 9
>
>Cetin
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform