Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SDI / MDI and refering to its main window
Message
From
26/10/1998 09:32:48
 
 
To
26/10/1998 09:19:28
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00147457
Message ID:
00150456
Views:
29
>>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!'
>>
>This works. But in my top-level form i've got a button "open antother session" which does DO FORM Topform. So antoher session of my application is started.
>Now when i click the "Change Topform Caption" - button the caption of the topform of the last started session is modified instead of the currently active session.
>All my topforms have the same name: " Topform" because it is the same form.
>So as long as we are talking SDI it works, as soon as we go MDI we get problems.
>
>Marco.

Marco, it's enough to have just one top-level form.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform