>>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