Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activate form if it is opened before
Message
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00825696
Message ID:
00825719
Views:
18
I use something like:
local llFound
for each loForm in _screen.forms
    if upper(loForm.Name) = [MYFORMNAME]
       llFound = .t.
       loForm.Show()
    endif
endfor
if not llFound
   do form MyForm
endif
>Hi All,
>
>i am using im my menus to prevent twice open forms like below code
>
>
>* to the each form i am setting a name to the name property generall its being scx name
>
>* in skip for option code is on my menu
>
>wexist("myform")
>
>
>
>its running , and prevents second openings
>
>now i wantto do this , if form is open i wantto bring it front (activating called form etc)
>
>how ?
>
>TIA
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform