xbrowse fwh2006 sqlrdd erro

User avatar
Sistem
Posts: 224
Joined: Sun May 13, 2012 7:52 am

xbrowse fwh2006 sqlrdd erro

Post by Sistem »

segue o erro
Image

Code: Select all

METHOD SQLRDD_SaveState() CLASS TXBrowse

   if ::SQLRDD_hState == nil
      ::SQLRDD_hState   := {=>}
      HSetCaseMatch( ::SQLRDD_hState, .f. )
   endif

   ::SQLRDD_hState[ "nLen" ]     := ::nLen
   ::SQLRDD_hState[ "IndexOrd" ] := INDEXORD()
   ::SQLRDD_hState[ "descend" ]  := OrdDescend()    //  erro
   ::SQLRDD_hState[ "recno" ]    := RECNO()
   ::SQLRDD_hState[ "nKeyNo" ]   := ::SQLRDD_nKeyNo

return nil
 
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse fwh2006 sqlrdd erro

Post by nageswaragunupudi »

Is the function OrdDescend() not supported by SQLRDD ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xbrowse fwh2006 sqlrdd erro

Post by karinha »

Intente con:

Code: Select all


EXTERNAL DESCEND

tubanco->( ORDDESCEND( , , .T.) )

 
Saludos.
João Santos - São Paulo - Brasil
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

Re: xbrowse fwh2006 sqlrdd erro

Post by MOISES »

I haven't detected the problem so far.

Yes, SQLRDD supports OrdDescend()

Anyway, without a self-contained example it is impossible to debug.
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse fwh2006 sqlrdd erro

Post by nageswaragunupudi »

OrdDescend() does not require the EXTERNAL DESCEND
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse fwh2006 sqlrdd erro

Post by nageswaragunupudi »

MOISES wrote:I haven't detected the problem so far.

Yes, SQLRDD supports OrdDescend()

Anyway, without a self-contained example it is impossible to debug.
In our tests, OrdDescend() is working well with SQLRDD.

Can some body explain to me the error in English? What does the error say?
Regards

G. N. Rao.
Hyderabad, India
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xbrowse fwh2006 sqlrdd erro

Post by karinha »

João Santos - São Paulo - Brasil
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse fwh2006 sqlrdd erro

Post by nageswaragunupudi »

Enrico Maria Giordano wrote:Workarea not in use

EMG
Thank you very much.

That means the application program closed the dbf, even before xbrowse is destroyed. So, when the xbrowse got focus, the method KeyCount() is executed and the alias is not in use anymore.

Mr. Sistem

Can you please make this modification and try again?

Code: Select all

METHOD SQLRDD_SaveState() CLASS TXBrowse

   if ::SQLRDD_hState == nil
      ::SQLRDD_hState   := {=>}
      HSetCaseMatch( ::SQLRDD_hState, .f. )
   endif

   if SELECT() > 0
      ::SQLRDD_hState[ "nLen" ]     := ::nLen
      ::SQLRDD_hState[ "IndexOrd" ] := INDEXORD()
      ::SQLRDD_hState[ "descend" ]  := OrdDescend()    //  erro
      ::SQLRDD_hState[ "recno" ]    := RECNO()
      ::SQLRDD_hState[ "nKeyNo" ]   := ::SQLRDD_nKeyNo
   endif
   
return nil
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
Sistem
Posts: 224
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Post by Sistem »

fiz um video mostrado o erro. (acho que acontece o erro quando se tem um xbrowse aberto e abre outro e fechando em seguinda... não sei explicar, o video explica)
a correção não trabalha bem. trava o xbrowse
https://youtu.be/aDBEQd3Z53Y
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
Sistem
Posts: 224
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Post by Sistem »

desculpa pessoal
como esse erro não acontecia antes, pensei que fosse por conta da nova versão.
o problema eh que na tela que faço backup dos xml (segunda tela) fecha a tabela Exml->(dbCloseArea()) e o xbrawse(Exml) estando aberto corretamente apresenta o erro.

em resumo, ERRO MEU

obrigado a todos
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse fwh2006 sqlrdd erro

Post by nageswaragunupudi »

Thanks for clarifying that the problem is not with xbrowse.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Sistem
Posts: 224
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Post by Sistem »

XBROWSE lento com grande volume de dados versão 2006
tive que voltar para a versão 1912 :(
amanha posto video com a diferença das duas versões
FWH2008 | xHarbour | BCC74 | SQLRDD
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: xbrowse fwh2006 sqlrdd erro

Post by nageswaragunupudi »

Sistem wrote:XBROWSE lento com grande volume de dados versão 2006
tive que voltar para a versão 1912 :(
amanha posto video com a diferença das duas versões
You are right. We understand the reason.
Please wait, we will provide a workaround.
Meanwhile, please let us know the number of records in the DBF being browsed.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Sistem
Posts: 224
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Post by Sistem »

usando SQLRDD
Tabela 110.000 registros
seek esta demorado um pouco (1912 normal)
PageDown pressionando 10x seguidos trava o xbrowse por 20segundos
PageUP não trava, mais esta mais lento que a versão 1912
FWH2008 | xHarbour | BCC74 | SQLRDD
Post Reply