Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the active form.....
Message
De
15/07/1998 14:09:04
 
 
À
15/07/1998 13:17:47
Larry Santos
Local Data System
Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00117679
Message ID:
00117728
Vues:
16
>>Hi Larry...
>>
>>Try this:
>>
>>
>>cFormName="frmPosition"   && The Name property of the form
>>lInUse=.F.                && Flag to see if open
>>FOR i = 1 TO _SCREEN.FormCount
>>   IF _SCREEN.Forms(i).Name = cFormName  && Found it
>>      _SCREEN.Forms(i).Show()
>>      lInUse=.T.
>>   ENDIF
>>ENDFOR
>>IF !lInUse
>>   DO FORM frmPosition
>>ENDIF
>>
>
>Hi,
>
> doesnt work they create the form again...
>
>Thanks

Larry, I think John K. may be correct about you not having the form name correct. WEXIST with a correct form name DOES work...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform