Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6.0 - Addobject Method
Message
From
02/03/1999 11:17:14
 
 
To
02/03/1999 11:15:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00193175
Message ID:
00193178
Views:
19
>If I run the following code twice I get an error message [A member object with this name already exists]. What do I do if I want to create more than one textbox on my form?
>
>Thank you for your time
>
>
>THISFORM.AddObject('mytextbox','textbox')
>THISFORM.mytextbox.Top = 10
>THISFORM.mytextbox.Left = 10
>THISFORM.mytextbox.Visible =.T.

You should create them with different names:
THISFORM.AddObject('mytextbox1','textbox')
THISFORM.AddObject('mytextbox2','textbox')
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform