12-21-2023, 05:32 PM
Code: (Select All)
ReDim Shared sa$(1 To nItems) 'setup with string array sa$() shared so dont have to pass as parameter
What if the user requires two string arrays to sort, and cannot copy or tamper with the only "sa$()" one?
I'd rather take the example in QB64 Wiki, as slow and clunky as it might look.
https://qb64phoenix.com/qb64wiki/index.php/SWAP
(Example #3 but change array type to string.)