Tengo un programita para visualizar datos en un xbrowse en red
este programa consulta datos por claves pero se pone super lento que puede ser
![Question :?:](./images/smilies/icon_question.gif)
me podrían orientar
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Gracias!
Saluditos
![Wink :wink:](./images/smilies/icon_wink.gif)
Code: Select all | Expand
SELECT CADNFE
INDEX ON CADNFE->NFECOD TAG 07 TO INFETEMP ;
WHILE CADNFE->PEDIDCOD == PEDIDCOD2 .AND. ;
CADNFE->TPFAT_OP == "P" .AND. ;
CADNFE->STATUS == "IMP" .OR. ;
CADNFE->STATUS == "CAN" .OR. ;
CADNFE->STATUS == "APR" TEMPORARY
Code: Select all | Expand
#define TOPSCOPE 1
#define BOTTOMSCOPE 2
FUNCTION Main()
local cLimInf := "001" + "002"
local cLimSup := "100" + "200"
dbselectarea( cTabla )
ordsetfocus( 1 )
(cTabla)->( SetScope( cLimInf, cLimSup ) )
xbrowse()
ClearScope( cTabla )
RETURN NIL
function SetScope( xValorIni, xValorFin )
DEFAULT xValorFin := xValorIni
OrdScope( TOPSCOPE, xValorIni )
OrdScope( BOTTOMSCOPE, xValorFin )
DBGoTop()
RETURN nil
Code: Select all | Expand
function ClearScope()
OrdScope( TOPSCOPE , NIL )
OrdScope( BOTTOMSCOPE , NIL )
DBGoTop()
RETURN nil