Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays
Message
 
 
À
13/06/2002 19:12:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Arrays
Divers
Thread ID:
00668248
Message ID:
00668756
Vues:
22
>Sergey is correct, as always. :)

Thanks, I guess. :)

>But for character data, we should mention that there is another option in VFP7. You can use the ALINES function, with a parsechar, to fill your array:
>
>ALINES(_array, "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",.f., ",")
>

It's cool but put in the code w/o comment could stump someone reading that code later.
It would be better if MS implemented some better way to accomplish that. It could be ASTORE() function with syntax as follow.
ASTORE(ArrayName, nStartElement, eExpression [, eExpression, ...)
Where, nStartElement - Specifies the element number at which the population begins. 

For, example
ASTORE(_array,1, "Jan","Feb","Mar","Apr","May","Jun","Jul", "Aug","Sep", "Oct","Nov","Dec")
* Or
ASTORE(_array,1, 1, 2, 3)
Just my $.02. :)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform