>Hi,
>
>>>Hi All,
>>>
>>>Before I reinventing the wheel, is there a free library out there, one with array manipulation functions?
>>
>>What functions do you need? Visual FoxPro has built-in arrays, and it has functions to work with them.
>
>Quite a number of them:
>1) One which add/delete/insert element and resize (actually 3 functions)
add/resize:
Just REdimention the array:
DECLARE laTest[1]
laTest[1]=[First Element]
?laTest[1]
DECLARE laTest[2]
laTest[2]=[Second Element]
?laTest[1]
?laTest[2]
Delete: Check ADEL() in HELP
>2) One which concatenate 2 arrays (same dim)
Why?
>3) One which find the max len/size of elements (in a col)
What is the MAX() size of element in array that have integer, string and date values?
DECLARE laTest[3]
laTest[1] = 1234
laTest[2] = [Test Me]
laTest[3] = DATE()
>4) One which rotate elements in array
What you mean with rotate?
>5) One which reverse the elements in an array
That is not neccesary at all
>6) One which pad every elements to the max len
See 3 :-)
>....
>n) you name it
>
>there are many not found in VFP... I know those are not that difficult to create on my own, just probably someone already have them and can save me some time.
BTW I rarely use arrays. I prefer to use CURSOR for this.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.