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 20:03:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
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:
01329058
Views:
16
>>>2) One which concatenate 2 arrays (same dim)
>>Why?
>>
>When I need to merge 2 array into 1

You can achieve this by aCopy() - first time to copy the first array, second to add the second. Would need to redimension the result at some point - maybe before the first aCopy().

>>>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)

But a general purpose array function library would need to check for type first. Which is yet another reason why w don't have it.

>>>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)

dimension to one extra row
copy 1st row to last
adel(1st row)
dimension to one row less

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform