Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine existing Forms?
Message
 
To
25/06/1998 19:58:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00111765
Message ID:
00111775
Views:
14
Curt,

If your running your app from the primary VFP window, the _screen object will contain them in a property FORMS.

To find all the forms created, you can use the FOR EACH command
FOR EACH loWhatForm in _screen.forms
  ? loWhatForm.Name
  ? loWhatForm.Caption
ENDFOR
All the properties and methods are available once they are cycled into the loWhatForm variable...


>I've tried searching all over the place, but can't seem to find a nice, clean way of querying my application to tell me what Forms exist. I know I can get the top most one using WONTOP(), but does anyone know an easy way to return all of the open windows to an array of strings?
Previous
Reply
Map
View

Click here to load this message in the networking platform