Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a from from a command button
Message
From
26/10/1998 21:42:20
 
 
To
26/10/1998 20:51:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00150720
Message ID:
00150752
Views:
36
>Hi, Mike.
>Does it help to set the toplevel form as invisible when you do the called form
>and reset it visible when the called form is released? They need to be desktop forms, right? Not sure about in 6.0...
>
>
>>
>>1. User clicks pushbutton on top level form.
>>2. Top level form disappears, focus goes to and remains on
>> modeless called form until called form is released.
>>3. Top level form reappears and receives focus.
>>

I just tried that and it didn't work. The problem is that execution continues on past the DO FORM command in the calling form, regardless of whether I hide() the calling form or set it's visible property to .F.

I have just about decided to have the top level form release itself after it calls the subform, and have the subform reinvoke the top level form when it exits. i.e. FORM A has a DO FORM B in its button click code and then does a ThisForm.Release(), FORM B has a DO FORM A in its Destroy method.

I'm just hoping someone will tell me there is a better way.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform