Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check for existence of a form already load/run
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00357153
Message ID:
00357185
Views:
14
>Is there a way I can check to see if the main form was ever loaded prior to trying to go to it with my DO FORM command? If it was not loaded, I will load it with DO FORM main.scx otherwise, if it is aleady loaded I don't want to load it again. I will skip loading it.

if type('main') = 'O' and not isnull(main)

You can insure that main is teh varaible the form loads in with the NAME clause:

do form main.scx name main
Previous
Reply
Map
View

Click here to load this message in the networking platform