Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stubborn columncount
Message
From
21/03/1999 13:52:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Stubborn columncount
Miscellaneous
Thread ID:
00200293
Message ID:
00200293
Views:
32
I've noticed one funny thing: I was subclassing a form class which had a grid with, say, 10 columns, and wanted to cut it down at 2-3 columns in form's init. In the debugger, I've seen the columncount go down to 2, but the columns collection still had 10 members, and the refresh fired for all of them.

I suppose you can't possibly release any of the objects defined at the form's class level - I've changed the approach and moved the inherited grid left to -2*grid.width, and addobject()ed another grid just to suit my needs, and it does work. What puzzles me is why did it accept the smaller columncount at all? Specially when it has no effect. Was the debugger simply lying?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Next
Reply
Map
View

Click here to load this message in the networking platform