Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclass GRid in a container
Message
From
05/04/2000 11:30:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Subclass GRid in a container
Miscellaneous
Thread ID:
00355724
Message ID:
00355724
Views:
50
I has a container that contain a grid with columncount = -1 and saved as a class name: CNTBASEGRID in TESTBASE.VCX

Now I create a new class based on CNTBASEGRID and change the COLUMNCOUNT to 3 and save it as CNTCHILDGRID in TESTBASE.VCX.

Here is the kicker or problem??????

set class to testbase.vcx
lo = create ('form')
lo.addobejct("grd","cntchildgrid")
lo.grd.visible = .t.
lo.show


Guess what
lo.grd.columncount has changed to 4 instead of 3

Seem like whenever I drop the CNTCHILDGRID to a form or a new class its added a new column to the grid. Any Idea? Try it yourself if you can reproduce it.
Next
Reply
Map
View

Click here to load this message in the networking platform