a sort an array - Resolved -

a sort an array - Resolved -

Postby Silvio.Falconi » Wed May 25, 2022 5: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
Last edited by Silvio.Falconi on Thu May 26, 2022 10:51 am, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: a sort an array resolved

Postby Silvio.Falconi » Wed May 25, 2022 5: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests