Thank you very much for your help !! - I finally figured it out..
(after spending nearly 30 hours this saturday and sunday).
It turns out, that there is a bug i the Lotus Notes IDE, so values
in an array manipulated by Powerbasic (or any other language, for
that matter) are NOT shown correctly when returning from the DLL.
It showed the first 33 entries of the array correct (aside from
entry number 4, that only showed half the entry - go figure

and all the remaining elements of the array as empty values !.
When trying to actually show elements from the array, everything
went OK, and all the values were present, and in "good shape"

To say, that PB is fast is an understatement !!! - it would be more
precise to say, that it "blowed the top off of Lotus Notes". I had
the following results, when timing (appr.) the ACTUAL sorting.
(And not including the DLL call, and the initialization of the
LotusScript Array):
(This on a PIII, 300mhz with 192Mb of ram)
Sorting an array with 4600 string-entries : appr. 0,085 sec.
Sorting an array with 460.000 string-entries: appr. 8,5 sec.
Sorting an array with 920.000 string-entries: appr. 17 sec. (!!)
(I stopped at 920.000 entries, because it took too long for Lotus
to "export" all the arrays to the DLL - appr. 3,5 minutes for
2000+ individual arrays, that were combined into one single PB-array)
Once again - Amazing !!!!!
Thank you very much for your help !
Kenneth
------------------
Leave a comment: