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:
00468835
Vues:
19
>>No, "?laArray" would still return .F. if there has never been a value put in it.
>>It is still "empty", however the array is not.
>
>I get what you are saying.
>If I said
>MylogicalValue = laArray
>?MyLogicalValue && would return .f.
>
>That makes sense now I guess that is why you are the MVP :-)
>
>Thanks for the info I know it will come in handy sooner or later.
>Probably sooner :-)

You can reference an array without any subscripts. The information shown is the whatever is in the first element of the array.

A little trick you can use to initialize an entire array:

laArray = 0 (or =.T., or whatever type of value you need)

Now, no matter what the dimensions of the array, all of the elements have been set to 0.
Fred
Microsoft Visual FoxPro MVP

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

Click here to load this message in the networking platform