>>Quite a number of them:
>
>Well, no, I don't know a free library that does that.
>
>>1) One which add/delete/insert element and resize (actually 3 functions)
>
>This part is actually quite easy: ains() / adel() / dimension
>
>>2) One which concatenate 2 arrays (same dim)
>>3) One which find the max len/size of elements (in a col)
>>4) One which rotate elements in array
>>5) One which reverse the elements in an array
>>6) One which pad every elements to the max len
>
>I suspect your needs are very specific, that is, not everybody has those needs. Therefore, you probably won't find any ready-made functions for this.
>
>You might also consider using other data structures, instead of arrays - for example, cursors, which are simply temporary tables. For example, Visual FoxPro's arrays are limited to 1 or 2 dimensions; I published a download here on the Universal Thread of an "array" that permits many more dimensions. The data is internally stored in a cursor.
Come to think about it, array in VFP is really handicap in several aspect... I try not to use it, but many VFP native function store/return their result as array, so quite often when come to manipulate those results, manipulating array is the most direct and quick way... I suppose.
I think I got no choice but to invent my wheel :)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only