Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SDI / MDI and refering to its main window
Message
 
À
16/10/1998 11:16:44
Marco Beuk
Innovero Software Solutions
The Hague, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00147457
Message ID:
00147532
Vues:
31
>>As long as child forms know about parent, just refer to the top-level:
>>
>>topform.caption = "I'm in child form X"
>
>This generates an error: "Object TOPFORM is not found".
>I named my top level form to "topform" but it didn't help.
>
>You say: just refer to the top-level. But i don't know how to refer to the top-level.

Okay, say you have a top-level scx Topform, and another scx Childform. You

DO FORM Topform

then (simplest example) in Topform, you have a button "run childform" with code

DO FORM Childform

Now from Childform, you have a button "Change Topform Caption" with code

Topform.caption = 'Hi There!'

Try that just to get the idea, you can embellish on the idea from there...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform