Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a form object to another form during run time
Message
 
To
07/12/2006 23:01:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01175955
Message ID:
01176041
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
>Greetings all
>
>I am attempting to add (a container object containing several other objects existing on a form) to another form during run time. The container is not a class. Is it possible?
>
>thanks, vince

One of the solutions:
do form ... name form1
do form ... name form2
lctempflname="S"+sys(3)
form1.container1.SaveAsClass(lctempflname,"hello")
SET CLASSLIB TO (lctempflname) addi
form2.AddObject("hello1","hello")
with form2.hello1
        .Visible=.t.
    .............
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform