Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent open form from re-opening
Message
From
10/08/1998 09:16:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125109
Message ID:
00125209
Views:
17
After posting my original message, this is the solution I developed. I have to send a parameter to some forms so I added that to my code as well!

>Dan,
>
>My code that does basically the same thing uses the _screen.Forms[] collection. It looks for the _screen.Forms[i].Name if it is the name I'm looking for I just _screen.Forms[i].Activate() otherwise it does a DO FORM.
>
>>I have an application that uses a button on several different forms to open a different form. I can prevent the form from opening if it is already open with the following code in the click method of the button:
>>
>> if !wexist(<>)
>> do form ...
>> endif
>>
>>My question is, if the form is already open, how can I activate it without re-opening it?
Thanks,
Dan Jurden
djurden@outlook.com
Previous
Reply
Map
View

Click here to load this message in the networking platform