Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Detect a Memory Variable's existence
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01243828
Message ID:
01243832
Vues:
21
>How do you detect if a memory variable exists without causing a program to stop?

Use
vartype(myVar)<>'U'
Or use
type('MyVar') <> 'U'
for more complex cases, say, type('_screen.ActiveForm.name') = 'C' or type('myArr[1]') <> 'U' to check array's existance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform