Search found 105 matches: descend

Return to advanced search

Re: Bug in Harbour Descend()

... //--> T    HB_SETCODEPAGE( "ITWIN" )    ? chr(199)<chr(205) //--> F  the problem is not the descend... very sad
by AntoninoP
Tue Apr 13, 2021 8:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

The purpose of Descend () is to be Clipper compatible. Therefore it is not an error, but an unexpected behavior for those who use codepages
The existence of hb_Descend (), compatible with the codepage system, would be highly desirable.
by hmpaquito
Tue Apr 13, 2021 4:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

Yes, the order changes but it's not correct either.

EMG
by Enrico Maria Giordano
Tue Apr 13, 2021 4:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

have you tryied using StrZero instead of Str?
by AntoninoP
Tue Apr 13, 2021 3:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

It looks like the bug has never been fixed. :-(

EMG
by Enrico Maria Giordano
Tue Apr 13, 2021 9:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

... http://forums.fivetechsupport.com/viewtopic.php?f=6&t=29052&p=163632&hilit=descend&sid=17d6d2aeb2ab1b539390e4fd93f78e55#p163632 http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=17321&start=0 Solution and explication: ...
by hmpaquito
Tue Apr 13, 2021 9:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

Thank you. It is not feasible as it would require to change all the ASort() calls. I prefer to remove the codepage.

EMG
by Enrico Maria Giordano
Tue Apr 13, 2021 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

I am not commenting on the behaviour of the Descend() function, but I would have approached it in a different way:
Code: Select all  Expand view

ASort( aData,nil,nil, { |x,y| If( x[ 2 ] == y[ 2 ], x[ 1 ] > y[ 1 ],  x[ 2 ] > y[ 2 ] ) } )
 
by nageswaragunupudi
Mon Apr 12, 2021 9:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

The problem seems to be the codepage. Without setting it, the sort order is correct. But the codepage should not affect the behaviour of Descend() function, should it?

EMG
by Enrico Maria Giordano
Mon Apr 12, 2021 3:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

No, as I want to sort for the second item descending and the first item ascending. Anyway, it doesn't work either.

EMG
by Enrico Maria Giordano
Mon Apr 12, 2021 2:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: Bug in Harbour Descend()

IMHO Test is erronous

Sorting so:

Code: Select all  Expand view
ASORT( aData, , , { | aItem1, aItem2 | Descend( Str( aItem1[ 2 ], 10, 2 )  + aItem1[ 1 ] ) < Descend( Str( aItem2[ 2 ], 10, 2 )  + aItem2[ 1 ]  )} )


Regards
by hmpaquito
Mon Apr 12, 2021 2:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Bug in Harbour Descend()

... }    aData[ 7 ] = { "TEST7", 255.65 }    ASORT( aData, , , { | aItem1, aItem2 | Descend( Str( aItem1[ 2 ], 10, 2 ) ) + aItem1[ 1 ] < Descend( Str( aItem2[ 2 ], 10, 2 ) ) ...
by Enrico Maria Giordano
Mon Apr 12, 2021 1:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 1832

Re: FWH2008 ERRO xBrowse (SQLRDD)

não deu certo
eh algo no xbrowse ... essa area RECENEW nem faz paste do xbrowse.... estranho
karinha wrote:Intente asi. Tente assim.

[code=fw]
EXTERNAL DESCEND
Saludos.
by Sistem
Wed Nov 18, 2020 1:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: FWH2008 ERRO xBrowse (SQLRDD)
Replies: 7
Views: 560

Re: xbrowse fwh2006 sqlrdd erro

OrdDescend() does not require the EXTERNAL DESCEND
by nageswaragunupudi
Thu Jul 16, 2020 10:09 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: xbrowse fwh2006 sqlrdd erro
Replies: 24
Views: 3195
PreviousNext

Return to advanced search