Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stubborn columncount
Message
De
21/03/1999 13:52:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Stubborn columncount
Divers
Thread ID:
00200293
Message ID:
00200293
Vues:
30
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform