Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out what forms were created?
Message
 
To
16/07/1996 01:07:48
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:
00004019
Views:
33
> or get a list of all forms created so far?

Paul,

You could use the _screen variable that has a formcount and and a forms(array) property. This way you have access to all the forms (read and write). For example if you require the names of all the forms that are created it would approximately as follows (look in Help if my syntax is not correct).

for xC= 1 to _screen.formcount
? forms[x].name
endfor

Be careful though: this will not work if you use a browse, because browse have entries in the _screen variable, but do not have name properties. On of the reasons why we should ban Browses from our vocabulary when coding.

Hope it helps,

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform