Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Builder for Form Classes
Message
From
25/04/2007 10:28:57
 
 
To
25/04/2007 07:55:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01219692
Message ID:
01219774
Views:
8
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")  && gives error
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform