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:19:56
 
 
To
04/07/2008 17:45:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01329037
Message ID:
01329049
Views:
11
>>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
Map
View

Click here to load this message in the networking platform