Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6.0 SaveAsClass - Header, Column,Page
Message
From
03/10/1998 11:50:28
 
 
To
03/10/1998 10:49:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00143459
Message ID:
00143596
Views:
38
>>Now the hard part, getting the grid to use this header class. In the grid's Init;
>>
>>
>>SET PROCEDURE TO <ThePrgThatHasTheDefineClassInIt> ADDITIVE
>>WITH THIS
>>   FOR Col IN .Columns
>>      .RemoveObject("Header1")
>>      .AddObject("Header1","MyHeader")
>>   ENDFOR
>>ENDWITH
>>
>
>Jim- I have toyed around with this kind of thing before, but never really gone too far with it, because I can't get properties copied from the form designer header to the 'myheader' automatically. Have you ever seen a way devised to 'loop' through an object properties, for the purpose of mimicking them in another object?

VFP 6.0 has a new AddProperty method that should do the trick for you.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform