Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Arrays
Divers
Thread ID:
00468777
Message ID:
00468797
Vues:
20
>Hello Russell!!
>
>I not entirely sure but you could check the value of the array and see if it was false. An empty array is always false at first.
>In other words:
>IF laArray = .f.
> ** my array is empty
>else
> ** it is not empty
>endif
>However, this only works after it has initialized :-). I will check for a better way.

Wouldn't work.

laArray[2] = "something"

laArray[1] could still be .f., but the array is not "empty".

BTW, a value of .f., 0, "", or {}, could also be considered empty, depending on the type of data involved.
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