Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a form object to another form during run time
Message
 
À
07/12/2006 23:01:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01175955
Message ID:
01176041
Vues:
9
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.
    .............
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform