Tenho que percorrer um recordset, numa consulta ao MySQL com ADO. No xharbour com DBF eu faria assim:
Código: Selecionar todos
while !chq->(eof())
if ascan(arr_reg,Cid->numreg) == 0 .OR. Cid->numreg == " "
chq->(dbskip())
loop
endif
chq->(dbskip())
end
Código: Selecionar todos
while !oRSChq:eof()
if ascan(arr_reg,Cid->numreg) == 0 .OR. Cid->numreg == " "
oRsChq:movenext()
orsChq:loop()
endif
oRsChq:movenext()
end


