Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tricks are for Grids (homage to Drew Speedie)
Message
From
14/06/2021 11:30:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
14/06/2021 06:37:52
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Product Documentation
Miscellaneous
Thread ID:
01681164
Message ID:
01681191
Views:
53
>Hmmm, would a guarded expression set to break on change be a better way to follow property value changes in the debugger ? Something easy like
>iif(Type("ogrid.HeaderHight")=="N", "N"+str(ogrid.HeaderHight), "U")
>
>set up in debugger BEFORE grid instance is created to trace all changes or if more tricks with memberclasses either on column and/or header on grid construction are thrown into he blender, trace a bit more

I'm pretty sure this would work but wouldn't show anything. The variable oGrid is not assigned a reference until the grid.init() exits, and then it may already be too late - whatever happened while building the grid is probably already finished. Even somewhere in grid.init() may be too late, if the thing happens somewhere in header's class's init, or column's. Though, the affected property being .headerHeight, well, perhaps grid.init() isn't a bad place at all.

back to same old

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

Click here to load this message in the networking platform