>Hello Cetin,
>
>thanks for your quick answer.
>
>I just tried your advise to only add the new headerclass. But VFP prompts an errormessage which says, that an identical object is already present (I am using VFP7 SP1).
>
>How comes that your vfp acts different than mine. Should I install the original american version instead of the localised german one ;-))
I used an headername that's different from default 'Header1'. Then you could do it like this :
with oCol
if type('.Header1')='O'
.removeObject('header1')
endif
.NewObject('Header1','myHeaderClass','HeaderClassLib.prg')
endwith
Cetin