Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Screen.FormCount return twice as many forms open
Message
 
 
To
09/11/1999 15:27:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00289231
Message ID:
00289432
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform