Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject/CreateObject
Message
From
15/03/2002 06:45:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00633293
Message ID:
00633297
Views:
26
>Hi Len,
>
>>How do I get the objects displayed on the form - I'm obviously missing something fundamental. Can CreateObject be used this way, or is it only possible with AddObject ?
>
>Create() can't be used that way. You can create controls with it, but never make them visible. You have to use .AddObject() to put them on a form, container, etc.
>
>You could add references to the added objects to a an array, so you know which controls you've added dynamically. Remember to clean up the array before destroying your form.
>
>Regards,
>Armin

Thanks, I'd done the array creation & tidy up, it was just getting them visible. Hilmar's pointed me to his FAQ with example code.
Len Speed
Previous
Reply
Map
View

Click here to load this message in the networking platform