Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there free library with array manipulation functions?
Message
From
04/07/2008 18:32:27
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01329037
Message ID:
01329050
Views:
17
>>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?
>
When I need to merge 2 array into 1

>
>>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()
>
>
I am refering to array with same type of elements (or same type of element per col)

>
>>4) One which rotate elements in array
>
>What you mean with rotate?
>
Imagine the array is a ring where the 1st element attach to the last ele, then rotate.
(Clockwise: last ele become first, 1st become second and it follows)

>>5) One which reverse the elements in an array
>That is not neccesary at all
>
Me too hope so,
(Btw, I should say mirror)

>>6) One which pad every elements to the max len
>See 3 :-)
>
See, same answer for 3 :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform