>
FOR EACH loForm IN _SCREEN.Forms
> IF loForm.Name = "MAIN"
> WAIT WINDOW "Hey...there's a form with the name 'NAME' open"
> EXIT
> ENDIF
>ENDFOR
>
>Vlad
>
>>FOR i = 1 TO _SCREEN.FormCount
>>IF _SCREEN.Forms(i).Name="MAIN"
>> WAIT WINDOW "Hey...there's a form with the name 'NAME' open"
>> EXIT
>>ENDIF
>>ENDFOR
>>
Vlad,
S.S.D.D. ;-D
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05