Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing multiple instances of the same form!
Message
From
13/08/2000 08:29:36
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00404356
Message ID:
00404369
Views:
10
One idea:
If your forms have unique names, put this in the form.Load()
LOCAL lnCnt
lnCnt =0
FOR ji = 1 TO _Screen.FormCount
   IF _Screen.Forms(ji).Name==this.Name
      lnCnt=lnCnt+1
   ENDIF
ENDFOR
RETURN lnCnt<=1
>Hi,
>
>How i prevent multiple instances of a form.
>I've already tried with WEXIST, but it doens't work correctly.
>
>Thanks in advance.
>
>Ricardo
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform