Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing multiple instances of the same form!
Message
De
13/08/2000 08:29:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00404356
Message ID:
00404369
Vues:
11
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform