Search found 105 matches: descend

Return to advanced search

Problemas con comportamiento de XBrowse.

Buenos dias. Tengo una DBF que muestro con un xBrowse. la DBF tiene 2 indices, uno de los cuales es combinado de NOMBRE+DESCEND(dtos(FECHAPAGO)) . El problema es que con el primer indice muestra perfecto los datos y me puedo mover por ellos sin problemas, pero cuando paso al indice ...
by José Camilo
Fri Mar 15, 2024 2:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con comportamiento de XBrowse.
Replies: 1
Views: 628

Re: oCn:Insert() - UTF8 encoding fails [Unsolved]

... the method Insert and get back to you. Don't hurry, I've a workaround BTW: I missed [<lFindLast>] in ::Seek() :( have to torture myself with DESCEND and LIMIT :roll:
by frose
Fri Nov 10, 2023 8:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oCn:Insert() - UTF8 encoding fails [Unsolved]
Replies: 6
Views: 503

Re: Bug in Harbour Descend()

A workaroud that seems to work fine: #include "Fivewin.ch"REQUEST HB_CODEPAGE_ITWIN#xtranslate DESCEND( STR( <nVal>[, <nLen>][, <nDec>] ) ) => Str( 999999999999999 - <nVal> )#xtranslate DESCEND( ...
by Enrico Maria Giordano
Wed Oct 19, 2022 5:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

karinha wrote:
Code: Select all  Expand view  RUN
MEMOWRIT( "ENRICO.txt", "àèéìòù" )


It doesn't work with this:

Code: Select all  Expand view  RUN
MEMOWRIT( "àèéìòù.txt", "àèéìòù" )
by Enrico Maria Giordano
Wed Oct 19, 2022 2:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

cnavarro wrote:For me run OK


Code: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    HB_SETCODEPAGE( "UTF8" )

    ? HB_MEMOWRIT( "àèéìòù.txt", "àèéìòù" )

    RETURN NIL


Result: .F., and no file written. :-(
by Enrico Maria Giordano
Wed Oct 19, 2022 2:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

#include "Fivewin.ch"REQUEST HB_LANG_ITREQUEST HB_CODEPAGE_ITWIN, HB_CODEPAGE_IT850FUNCTION MAIN()   LOCAL cFile   HB_CDPSELECT( "IT850" )   HB_LANGSELECT( "IT" )   HB_SETTERMCP( "ITWIN", &qu...
by karinha
Wed Oct 19, 2022 1:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

For me run OK

Image
by cnavarro
Wed Oct 19, 2022 12:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

Sorry, it doesn't work:

Code: Select all  Expand view  RUN
? hb_MemoWrit( "àèéìòù.txt", "àèéìòù" )


Result:

Code: Select all  Expand view  RUN
.F.


:-(
by Enrico Maria Giordano
Wed Oct 19, 2022 8:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

The problem is: without any codepage settings (ie. EN codepage) Descend() is fine but accented chars from filesystem are wrong. With ITWIN (or other codepages I tried) the accented chars from filesystem are right but Descend() is not working. Any solutions ...
by cnavarro
Wed Oct 19, 2022 8:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

The problem is: without any codepage settings (ie. EN codepage) Descend() is fine but accented chars from filesystem are wrong. With ITWIN (or other codepages I tried) the accented chars from filesystem are right but Descend() is not working.

Any solutions will make me happy. :-)
by Enrico Maria Giordano
Wed Oct 19, 2022 7:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

... MEMOWRIT( "àèéìòù.txt", "àèéìòù" )    RETURN NIL Sorry Enrico, but the example you put now has nothing to do with the Descend() function Has the example I posted worked? I will look at the new example you propose and I will answer you
by cnavarro
Wed Oct 19, 2022 12:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

It doesn't work, it creates a file with the wrong name. Please try this: #include "Fivewin.ch"REQUEST HB_LANG_ITREQUEST HB_CODEPAGE_ITWIN, HB_CODEPAGE_IT850FUNCTION MAIN()    HB_CDPSELECT( "IT850" )    HB_LANGSELECT( "IT" )&nb...
by Enrico Maria Giordano
Tue Oct 18, 2022 9:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

From Harbour-users group DESCEND() function is designed to operate on binary (BYTE) sorting and gives reverted collation order only for codepages which use such collation. Because DESCEND() converts numbers to characters which have special ...
by cnavarro
Tue Oct 18, 2022 6:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532

Re: Bug in Harbour Descend()

Thank you. It is not a real solution but better than nothing: DESCEND( STR( nVal ) ) => STR( 999999999999999 - nVal )DESCEND( DTOS( dVal ) ) => STR( DESCEND( dVal ) ) Let's hope that Harbour ...
by Enrico Maria Giordano
Tue Oct 18, 2022 6:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in Harbour Descend()
Replies: 34
Views: 2532
Next

Return to advanced search