Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Sort Challenge...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00218459
Message ID:
00218584
Views:
19
>>This is cheating a little, but you could dump the array into a cursor, using SQL with macros & ORDER BY as needed, then dump results back into array. No one would be the wiser, right? :)
>
>I considered switching from an Array to a cursor.. but, I want to avoid the IO bottle neck for this. The little bit of code will be used in our payroll engine which we claims processes faster than most on the market. Handling a small array in memory should blow cursor speed away.

I don't know about that, cursors/SQL can be extremely fast if they're small and non-complex...so fast that the difference with an array may well be negligible...I don't use arrays much anymore since I've found cursors so quick and more flexible...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform