>I can't use the class which generated from the view source function in class viewer.
>
>the generated class is as followed :
>
>define class abc as customform
>
> grid1.columncount = 1
> grid1.column1.controlsource ='cust.custname'
>...
> add object grid1.column1.header1 as header with caption = "test" <<<----Syntex Error
>....
>enddefine
>
>vfp said that the add object line in the generated class has syntex Error
>but I didn't modify the generated source
>
>Can anyone help me ..
>
>thanks
The code from the Class Browser does not handle containership in a manner that you can just "cut & paste". You'd have to manually modify the code to add the objects at the proper level.