Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do we check for the existence of an object?
Message
De
13/07/1999 16:40:59
 
 
À
13/07/1999 15:39:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00240965
Message ID:
00241004
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform