Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine existing Forms?
Message
 
À
25/06/1998 19:58:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00111765
Message ID:
00111775
Vues:
13
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform