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 17:45:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/07/2008 17:38:03
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01329037
Message ID:
01329046
Views:
21
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform