No, that doesn't make sense either. Grasping at straws without putting real 
thought into it. Confusion can do that at times.

Tom Liotta

rpg400-l-request@xxxxxxxxxxxx wrote:

>   2. Re: Sorting an array w/multiple fields (Scott Klement)
>
>When I run this, it gives me -7,-4,-2,0,1,4,6, as you'd expect.  But when 
>you posted your results, the negative numbers weren't in the right order. 
>So, why does mine work, and yours not?
>
>Maybe a PTF issue?

Scott:

You used zoned decimal instead of packed. And you are using single-digit 
values. Because the zone bits shift position between zoned and packed numbers 
at the right _AND_ there's only one significant digit, the results might be 
expected.

Tom Liotta


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.