Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there free library with array manipulation functions?
Message
From
06/07/2008 12:02:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/07/2008 10:31:53
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01329037
Message ID:
01329241
Views:
18
>>>Arrays are not going to give you increased performance. VFP is not C. Use cursors and you can do most of those with built in table manipulation commands.
>>
>>Can you push the array into a temporary table. Do what you have to do to the data and put it back in the array and destroy the temp table??
>
>Of course. The "array" table could even be 3D with columns like x, y, z, value, type.

Of course not, except sometimes - like in the special case when your array has columns where each element in the column is of the same type. Statistically, this IS almost the default case - all the aXXX() functions capable of creating arrays do return arrays of such type - but there are just enough exceptions to this that there's no guarantee that an attempt to write a general purpose function/method/prg/script/whachamacallit to handle them would be worthwhile.

The code to do most of the proposed array manipulations may be written in a dozen lines; the parameter checking may take twice as many lines, and take more than twice the time to run.

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