Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I
Message
De
28/01/1999 23:04:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00180248
Message ID:
00181658
Vues:
9
>Ed,
>
>Vartype() will handle a non-existent memvar with U, but vartype() will choke if you try and go down to nonexistent contained objects.
>

It melted down when I entered foo.bar for an argument, The actual error is Alias "Foo" is not found. It also smokes on foo.bar[1] with Object "FOO" is not found. I assumed the same happened with a simple variable name. Sorry.

>clear all
>? vartype( y ) && U
>? vartype( y.one ) && choke on "table" y
>? vartype( y.one.two ) && choke on object y
>
>>If the variable doesn't exist, VATYPE() smokes with a Variable "whatever" not found, so if the variable might not exist, or might be out of scope, TYPE() is still preferable.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform