Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with releasing forms
Message
From
06/11/2003 03:38:31
 
 
To
05/11/2003 23:17:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00846922
Message ID:
00846953
Views:
19
Hi,
>thisform.release
>_screen.activeform.release
>if _screen.activeform.caption="form1"
>    messagebox ("form1")
>endif
>if _screen.activeform.caption="form2"
>    messagebox ("form2")
>endif
>do form form3
>why am i getting the messagebox form2 instead of do form form3?

Not sure what you expect here. The ThisForm.Release() won't take effect until the method code completes (if it did then your subsequent code would be superfluous anyway). It would be simpler if you had an alternative way of referencing form1 - just:
form1.release
form2.release
do form form3
Regards,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform