Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out what forms were created?
Message
 
À
16/07/1996 01:07:48
Paul Wei
Fib, State of Michigan
Lansing, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00003996
Message ID:
00004019
Vues:
30
> 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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform