Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing Forms Before Calling other Forms
Message
From
26/08/1998 16:05:24
 
 
To
26/08/1998 15:59:49
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00130254
Message ID:
00130265
Views:
13
>>>I have a form containing a command button. The click event of that command button calls another form. How do I close the Initial form before the other one is called.
>>
>>I think this will work:
>>*** some form snippet
>>DO FORM anotherform
>>Release Thisform
>>But maybe it's enough Thisform.Visible=.F. ? (depends on what you need in)
>
>Maybe a two-step process? First, have the button call the form with
>
>DO FORM anotherform WITH THIS
>
>In the Init of anotherform, have:
>
>LPARAMETERS oCallingForm
>oCallingForm.Release
>
>Whaddya think?

It's always easier to destroy than create (forms etc.) :).
Seriously speaking, linking forms to some external (to them) object properties allows to do this job in very nice way: oApp.oModule.frmEdit=.NULL. and form is gone.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform