Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing headers
Message
From
05/12/1998 08:31:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00163637
Message ID:
00164433
Views:
20
>Michelle,
>
>>Getting the header into my grid, I think, can be done the same as with textboxes. I just run a program on the .SCX that replaces all of the classes.
>
>NO, NO, NO.. doing this will probably make the form impossible to open in the form designer. There was an article about playing this kind of trick on VFP in FPA a while back, but I didn't trust it enough to ever rely on it continuing to work. The header substitution needs to be done at runtime.

Just the way you make sure you have "cclass.vcx" in your set("class"), you also make sure you have included the .prg where the header class is defined programmatically into your classlibs, i.e.

if not "hdrclassdef" $ set("class")
set classlib to hdrclassdef.prg addi
endif

Then it works (well, the book says so).

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