Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Screen.FormCount return twice as many forms open
Message
 
 
À
09/11/1999 15:27:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00289231
Message ID:
00289432
Vues:
23
Sylvain,

Undocked toolbars show in the forms collection. Forms with .Visible=.f. are in the collection even if you can't see them. Are you by chance altering the record pointer as the forms open causing the duplication? How about assigning sys(2015) to .Tag.

>When the user select an option on the menu, I open as many copies of a form as there are record in a table:
>
>
SCAN
>   DO FORM MyForm
>ENDSCAN
The problem I have is that _Screen.FormCount will report twice as many forms as there are open. I traced my code and DO FORM MyForm get called twice (2 records in the table). When I check _Screen.FormCount, it return 4 (???).
>
>When I execute that code:
>
>
FOR EACH loForm IN _Screen.Forms
>   MESSAGEBOX(loForm.Name)
>ENDFOR
I get 2 messagebox for each form.
>
>What's wrong here?
>
>TIA
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform