Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine for the active form..
Message
De
15/07/1998 12:27:50
Larry Santos
Local Data System
Philippines
 
 
À
15/07/1998 11:02:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00117582
Message ID:
00117660
Vues:
24
>>>>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")  && or use do form here
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform