Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is myArray an array?
Message
 
À
17/06/2003 11:57:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00800787
Message ID:
00800911
Vues:
25
>>Is there any way to find out if myArray is an array? I guess I am looking for a function kind of like type() is for other data types.
>>
>>TIA
>>Einar
>
>Einar,
>Only reliable way is to test with an array function like alen() as Sergey pointed out. Otherwise it might not be an array while returning a type other than 'U'.
>Cetin
Cetin,
I also thought Sergey's method was more roboust so I have ended up using that method for testing for an array. Chuck's solution would also work but it is better to be safe than sorry.

Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform