Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declared Variable or not
Message
 
 
À
14/07/2000 16:48:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00392683
Message ID:
00392690
Vues:
9
>Is there a way to check to see if a variable exists or not. For instance, if var1 exists, do whatever, but if not, declare it and then do it.
>
>Same question goes for arrays and objects. If form exists, do something... if not, do something else or create it.

vartype(var1) <> "U" && variable exists

type("var1[1]") <> "U" && variable is an array of unknown dimensions
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform