Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does form exists?
Message
 
À
18/07/2000 22:48:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00394154
Message ID:
00394159
Vues:
8
>Hi, all! Please answer which function can determinate does object (in my sample form) exists or not. Thank you. Andrew

1. To check if an ListBox object exists in a form:
If Type("Thisform.ListBox1") = "O"
   ** existing
Else
   ** not existing 
Endif
<pre>

2. To check if a form is existing:
<pre>
IF WEXIST("NAMEOFMYWINDOW")
   ** existing
ELSE
   ** not existing
ENDIF
alternatively, you can also make use of Type("NAMEOFMYFORM") = "O".
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform