xbrowse fwh2006 sqlrdd erro

xbrowse fwh2006 sqlrdd erro

Postby Sistem » Wed Jul 15, 2020 11:28 pm

segue o erro
Image
Code: Select all  Expand view

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
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Postby nageswaragunupudi » Thu Jul 16, 2020 4:19 am

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

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

Re: xbrowse fwh2006 sqlrdd erro

Postby karinha » Thu Jul 16, 2020 7:15 am

Intente con:

Code: Select all  Expand view


EXTERNAL DESCEND

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

 


Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7772
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: xbrowse fwh2006 sqlrdd erro

Postby MOISES » Thu Jul 16, 2020 8:56 am

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
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: xbrowse fwh2006 sqlrdd erro

Postby nageswaragunupudi » Thu Jul 16, 2020 10:09 am

OrdDescend() does not require the EXTERNAL DESCEND
Regards

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

Re: xbrowse fwh2006 sqlrdd erro

Postby nageswaragunupudi » Thu Jul 16, 2020 10:11 am

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
nageswaragunupudi
 
Posts: 10601
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xbrowse fwh2006 sqlrdd erro

Postby karinha » Thu Jul 16, 2020 1:24 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7772
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Re: xbrowse fwh2006 sqlrdd erro

Postby nageswaragunupudi » Thu Jul 16, 2020 7:11 pm

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  Expand view

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
nageswaragunupudi
 
Posts: 10601
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xbrowse fwh2006 sqlrdd erro

Postby Sistem » Thu Jul 16, 2020 9:43 pm

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: 226
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Postby Sistem » Thu Jul 16, 2020 10:45 pm

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
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Postby nageswaragunupudi » Fri Jul 17, 2020 4:39 am

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

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

Re: xbrowse fwh2006 sqlrdd erro

Postby Sistem » Fri Aug 07, 2020 11:31 pm

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
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Re: xbrowse fwh2006 sqlrdd erro

Postby nageswaragunupudi » Sat Aug 08, 2020 2:51 am

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
nageswaragunupudi
 
Posts: 10601
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xbrowse fwh2006 sqlrdd erro

Postby Sistem » Sat Aug 08, 2020 10:12 am

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
User avatar
Sistem
 
Posts: 226
Joined: Sun May 13, 2012 7:52 am

Next

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests