Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays
Message
De
25/01/2001 18:34:35
 
 
À
25/01/2001 18:28:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Arrays
Divers
Thread ID:
00468777
Message ID:
00468869
Vues:
29
>>>At Least it looked good in theory :-)
>>
>>I did not try it, but the docs say thats what it will do, (count actual elements, as opposed to the defined array size).
>
>It does NOT do what the docs say it will do. oh well

No, it does EXACTLY what the docs say it will do. If it's not an array, it's not an array, that's all.

If you want to test if a variable is an array or not, you can do:

IF TYPE('laArray[1]')<>"U"

You can't use VARTYPE here or you could possibly get an error if the variable is not defined at all!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform