Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out what forms were created?
Message
 
To
15/07/1996 15:42:32
Paul Wei
Fib, State of Michigan
Lansing, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00003996
Message ID:
00003999
Views:
38
>How does one go about finding out what forms are created already? Is there a way to test for the existence of a form or get a list of all forms created so far?
>
>Thanks.
>
>Paul

If you mean during run time you can use the following code for objects:

if type('MyForm') = 'O' and !isnull(MyForm)
...
endif

or if a 'window' form try:

if wexist('MyForm')
...
endif

or one of the other Window functions like wontop().

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform