In fact the line
sortstring = sortstring ||inrec~substr(fs~abs,fe~abs,' ') || delim
in Method lines should be changed to
if inrec == '' then -- don't pad empty strings with pad char as these will
sort incorrect
sortstring = sortstring ||inrec || delim
else
sortstring = sortstring ||inrec~substr(fs~abs,fe~abs,' ') || delim
Håkan
----- Ursprungligt Meddelande -----
Från: hakan <[email protected]>
Till:<[email protected]>
Kopia:
Datum: onsdag, 11 november 2015 14:39
Ämne: Re: Sort class, please comment
This line in Method lines is in error
sortstring = sortstring ||inrec~substr(fs~abs,fe~abs,'
')~translate('01'x,'20'x) || delim -- '00'x
Should be
sortstring = sortstring ||inrec~substr(fs~abs,fe~abs,' ') || delim
and nothing else------------------------------------------------------------------------------
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users