Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the active form.....
Message
From
15/07/1998 14:09:04
 
 
To
15/07/1998 13:17:47
Larry Santos
Local Data System
Philippines
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00117679
Message ID:
00117728
Views:
17
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform