saltar registro en un filtro? error DBSKIP()
Posted: Sat Mar 22, 2014 3:42 pm
Buen día a todos.
hice un filtro de fecha en una tabla, todo bien pero al quererlo vaciar en un array dentro de un ciclo no puedo usar el DBSKIP(), bi DBGOTOP(). intente con set filter y tambien con DBSETFILTER,
pueden decirme cual es la alternativa para moverme registro por registro en un filtro por favor .
Google traductor
Good day to all.
I made a date filter on a table, was correct, but wanting to empty in an array I can not use the DBSKIP () nor DBGOTOP (). try in Set filter to and also with DBSETFILTER,
can you tell me what is the alternative to moving record by record in a filter please.
codigo:
procedure llenaARRAY
public k,x
public status[4]
k:=1
USE lista new
// set filter to lista->asiste = asistencia.datepicker_1.value
DBSETFILTER( { || lista->asiste = asistencia.datepicker_1.value })
x:=LASTREC()
lista->(DBGOTOP()) // me marca error
Do While ! lista->(Eof())
status[k]:=lista->asiste
lista->(DBSKIP()) // tambien me marca error
k+=1
Enddo
return
hice un filtro de fecha en una tabla, todo bien pero al quererlo vaciar en un array dentro de un ciclo no puedo usar el DBSKIP(), bi DBGOTOP(). intente con set filter y tambien con DBSETFILTER,
pueden decirme cual es la alternativa para moverme registro por registro en un filtro por favor .
Google traductor
Good day to all.
I made a date filter on a table, was correct, but wanting to empty in an array I can not use the DBSKIP () nor DBGOTOP (). try in Set filter to and also with DBSETFILTER,
can you tell me what is the alternative to moving record by record in a filter please.
codigo:
procedure llenaARRAY
public k,x
public status[4]
k:=1
USE lista new
// set filter to lista->asiste = asistencia.datepicker_1.value
DBSETFILTER( { || lista->asiste = asistencia.datepicker_1.value })
x:=LASTREC()
lista->(DBGOTOP()) // me marca error
Do While ! lista->(Eof())
status[k]:=lista->asiste
lista->(DBSKIP()) // tambien me marca error
k+=1
Enddo
return