Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Objects to a PageFrame on the Fly
Message
 
 
To
22/10/1998 12:44:10
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149463
Message ID:
00149521
Views:
22
>When I run the following code in the init of the page:
> set classlib to controls.vcx additive
> this.addobject('txtmake','txtbox')
> this.txtmake.left=25
> this.txtmake.top=100
> this.txtmake.visible=.t.
>I get the error that txtmake is an unknown member. The controls.vcx is in my project and has a class named 'TXTBOX'. I just don't see what I am doing wrong though obviously I am. Do I need to create the txtmake object first? Please let me know and again thank you for your help.

Just a shot in the dark here, but is the baseclass for 'TXTBOX' textbox or container? If by chance it is a container you would need to reference this.txtmake.txtboxname.left=25
hope this helps,
Marcus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform