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