Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does form exists?
Message
 
 
To
18/07/2000 22:48:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00394154
Message ID:
00394159
Views:
9
>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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform