FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour a sort an array - Resolved -
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
a sort an array - Resolved -
Posted: Wed May 25, 2022 05:02 PM

I wanted to reverse an array ie from the last line to the first
I made
ASort( atab ,,, {|x,y| x > y } )

I have this error

Error description: Error BASE/1075 Argument error: >
Args:
[ 1] = A {1,32,21,59,44,90,10,25,53,0,17,7,57,11,1,60,29,51,41,56,48,86,41,37,30,26,33,54,78,41,19,23,1 ... } length: 56
[ 2] = A {0,42,28,73,64,30,48,20,7,34,67,36,27,79,50,87,78,19,87,39,27,84,7,83,66,9,88,8,61,42,26,76,70 ... } length: 56

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: a sort an array resolved
Posted: Wed May 25, 2022 05:05 PM

resolved!!!!
ASort( atab ,,, {|x,y| x[1] > y[1] } )

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion