Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do we check for the existence of an object?
Message
From
13/07/1999 16:40:59
 
 
To
13/07/1999 15:39:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00240965
Message ID:
00241004
Views:
16
>If a grid doesn't already exist on a form, I want to add it along the lines of:
>
>if not (object_exist())
> addobject(mygrid)
>endif
>
>how do we do it in vfp?

IF TYPE(character expression for name of object) # "O"

eg

IF TYPE('thisform.MySillyGrid') # "O"
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform