Try this:
lcName = ThisForm.aFormList[nRow]
Do Form (MyForm) Name (lcName) linked
Glenn
>Hi.
>I am loading forms with following syntax:
> Do Form &MyForm Name ThisForm.aFormList[nRow] linked
>
> (where aFormList is being incremented each time)
>
>This loads the form fine but it gives all the forms the same name.
>If I have 3 buttons on a screen which load 3 separate forms, it seems to give every form I load the same name (in my case Form2)
>
>I want to be able to distinguish the name of each form so I can prevent the same form from being loaded a second time if it is already loaded.
>
>Any help apprecaited.
>
>regards,
>
>Gerard