Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code that makes a column visible
Message
From
24/11/2006 05:40:40
 
 
To
23/11/2006 18:21:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01172161
Message ID:
01172227
Views:
17
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform