Thanks Cetin,
I have my builder working perfectly!
Peter
>>I want to build a simple builder for my form classes like:
>>
>>
>>
>>CREATE CLASS s_BndType OF e:\vapps\vdms\modules\vdmsiss2.vcx as form3 FROM e:\vapps\vdms\modules\appbaseform.vcx
>>o=SYS(1270)
>>o.pgf1.page2.addobject( "txt1","txt","modules\appbasectrl.vcx")
>>o.pgf1.page2.txt1.Controlsource="thisform.business.data.DESCRIPTION"
>>
>>
>>but on lime 3 I get 'Error 1733 Class definition TXT not found' but the vcx has a classs definition called txt
>>what am I doing wrong or what better way would be to accomplish my task, especially can I avoid having to move the cursor over and doing the sys(1270) bit
>>
>>
>>Thanks
>>
>>
>>Peter
>
>Peter,
>
>To fix the error use newobject() instead of addobject().
>
>You can replace sys(1270) with aselobj() or locate the form ref. using objects collection.
>
>Cetin
Peter Cortiel