>>>>Hi,
>>>>
>>>> I have a lot of form open into my application e.g. employee, department, position, location. How should i know or to detect if the form position is already exist in my application?
>>>>
>>>>Thanks and Advance
>>>>Larry Santos
>>>
>>>You can check before you load the form:
>>>
>>>if type(oApp.PositionForm)<>"O" or isnull(oApp.PositionForm)
>>> oApp.PositionForm=createobject("clPosForm")
>>>endif
>>>oApp.PositionForm.show()
>>>
>>
>>Edward,
>>
>> By the way thank you for your answer. Actually im using the logic of tastrade in visual foxpro 5 and they used the doform("Formname") or just like do form "formname" how should I know if that formname is already exist and if existing how to activate that form without displaying again the form i mean w/out duplicate display of that form.
>>
>>Thanks
>>Larry Santos
>
>There are few ways to check form existence:
>1. You search through _SCREEN.Forms collection
>FOR n=1 to _screen.formcount
>if _screen.forms(n).name="myform"
>=messagebox("you have it")
>endif
>ENDFOR
>2. You provide reference link to a form when you create it:
>DO FORM myform NAME oApp.myform LINKED
>and use this link for subsequent checking:
>IF TYPE('oApp.Myform')="O" and not isnull(oApp.myform)
>=messagebox("you have it")
>ENDIF
Edward or any,
Is oApp.myform is an array?
Thanks