Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays
Message
 
 
To
13/06/2002 19:12:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Arrays
Miscellaneous
Thread ID:
00668248
Message ID:
00668756
Views:
23
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform