Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How tell if its an Array?
Message
 
 
À
06/07/2002 04:52:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00675762
Message ID:
00675827
Vues:
15
>>I need to tell wether a variable is an array or not. If I do :
>>
>
>Sounds like there is no precise and easy way of knowing if something is an array or not.
>You could try to 'produce' an error :
>
>local llIsNotArray
>on error llIsNotArray = .t.
>alen(laArray)
>on error
>
>if llIsNotArray
>...

What about this one-liner?
IF TYPE("ALEN(laArray)") = "N"  && It's array
TYPE() function does all error handling for you.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform