asort array but on row
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
asort array but on row
I wish order an array but on row sample
I wish the numbers of each row are on decrescent because I must show on dialog the number from big to minor
how I can resolve ?
I wish the numbers of each row are on decrescent because I must show on dialog the number from big to minor
how I can resolve ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: asort array but on row
ASort( aRow, 2, nil, { |x,y| x > y } )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: asort array but on row
I must sort it before to show it into a xbrowse
I have the array aData
I have the array aData
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: asort array but on row
for each aRow in aData
ASort( aRow, 2, nil, { |x,y| x > y } )
next
Browse adata
ASort( aRow, 2, nil, { |x,y| x > y } )
next
Browse adata
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: asort array but on row
Error description: Error BASE/1003 Variabile inesistente: AROW
aPrevisti:= Calcolo_Previsione(oPrevisione,primo,ba,ca,fi,ge,mi,na,pa,rm,to,ve,nz,aRuote)
for each aRow in aPrevisti
ASort( aRow, 2, nil, { |x,y| x > y } )
next
aPrevisti:= Calcolo_Previsione(oPrevisione,primo,ba,ca,fi,ge,mi,na,pa,rm,to,ve,nz,aRuote)
for each aRow in aPrevisti
ASort( aRow, 2, nil, { |x,y| x > y } )
next
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Re: asort array but on row
Local aRow
aPrevisti:= Calcolo_Previsione(oPrevisione,primo,ba,ca,fi,ge,mi,na,pa,rm,to,ve,nz,aRuote)
for each aRow in aPrevisti
ASort( aRow, 2, nil, { |x,y| x > y } )
next
aPrevisti:= Calcolo_Previsione(oPrevisione,primo,ba,ca,fi,ge,mi,na,pa,rm,to,ve,nz,aRuote)
for each aRow in aPrevisti
ASort( aRow, 2, nil, { |x,y| x > y } )
next
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: asort array but on row
Not run ok
the array is not asort
the array is not asort
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: asort array but on row
perhaps with this picture Ucan understand why it is not asort for me
See the red circles
ASort( aRow, 2, nil, { |x,y| x > y } )
How modify it ?
See the red circles
ASort( aRow, 2, nil, { |x,y| x > y } )
How modify it ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Re: asort array but on row
ASort( aRow, 2, nil, { |x,y| val(x) > val(y) } )
- Silvio.Falconi
- Posts: 4956
- Joined: Thu Oct 18, 2012 7:17 pm
Re: asort array but on row
oopps good!!
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC