Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays
Message
De
25/01/2001 18:36:43
 
 
À
25/01/2001 18:32:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Arrays
Divers
Thread ID:
00468777
Message ID:
00468870
Vues:
27
>>Nope, it still gives you an "'whatevernameyouused' is not an array" error. Unless it is an array, but even then it still will return at least 1. An array has to have at least one element.
>
>It really just returns the defined size. I tested it.
>
>Dimension MyArray(10)
>myArray[1] = 'jim'
>nlen = alen(MyArray,0)
>?nlen  && this will show 10
>
>
>oh well, what in your case, would constitute an empty array? That is the problem. I think the DIMENSION command fills elements with a value of .F., which may not help much.

That's correct, there is no way to tell if an array is "empty" (unless you never have .F. values in it). But as you noted, .F. could be perfectly valid.
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform