Page 1 of 1

Modification DC_FindBrowse

Posted: Thu Mar 01, 2012 8:54 am
by digitsoft
Hello Roger
Add this Modification to when it arrives at the beginning or end of the database not Blink

do case
case nKey == xbeK_UP .AND. !((xData)->(DC_TestBof( ))) && Nolberto Paulino
oBrowse:up()
oBrowse:refreshAll()
case nKey == xbeK_DOWN .AND. !((xData)->(DC_TestEof( ))) && Nolberto Paulino
oBrowse:down()
oBrowse:refreshAll()
case nKey == xbeK_CTRL_PGUP .AND. !((xData)->(DC_TestBof( ))) && Nolberto Paulino
oBrowse:gotop()
oBrowse:refreshAll()
case nKey == xbeK_CTRL_PGDN .AND. !((xData)->(DC_TestEof( ))) && Nolberto Paulino
oBrowse:gobottom()
oBrowse:refreshAll()
case nKey == xbeK_PGDN .AND. !((xData)->(DC_TestEof( ))) && Nolberto Paulino
oBrowse:PageDown()
oBrowse:refreshAll()
case nKey == xbeK_PGUP .AND. !((xData)->(DC_TestBof( ))) && Nolberto Paulino
oBrowse:PageUp()
oBrowse:refreshAll()

Re: Modification DC_FindBrowse

Posted: Thu Mar 01, 2012 9:24 am
by rdonnay
I am worried about this on large databases. DC_TestEof() and DC_TestBof() have given me problems in the past when using these functions with a large database full of deleted records. It can cause much slowness.

Re: Modification DC_FindBrowse

Posted: Thu Mar 01, 2012 10:20 am
by digitsoft
Ok, DBF provare with 259.904 and 817.919 that has to see his slowness

Another function can generate Slowness in DBF

Paulino Nolberto

Re: Modification DC_FindBrowse

Posted: Thu Mar 01, 2012 12:35 pm
by Auge_Ohr
digitsoft wrote:Add this Modification to when it arrives at the beginning or end of the database not Blink
what about :hitTopBlock() and :hitBottomBlock() ?

Re: Modification DC_FindBrowse

Posted: Thu Mar 01, 2012 1:07 pm
by rdonnay
what about :hitTopBlock() and :hitBottomBlock() ?
That is a much better idea. Thanks.