PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Access query as an array
Access query as an array
Iniciado por guest, 07,dic. 2014 13:11 - 2 respuestas
Publicado el 07,diciembre 2014 - 13:11
Ive used the hexecutequery and want to acces it as an array

something like

nRowIWantToAccess is int = 4
hexecutequery(myquery)

if MyQuery.Col2[nRowIWantToAccess] > somevalue then
DoSomething()
end

Is there a way to do this.

Thanks,

Willy Hermans
Publicado el 07,diciembre 2014 - 15:40
Hi Willy,

I think the record number of the query is a sequential number, so to access record #4 you do a hRead(MyQuery,4)

Regards,
Piet
Publicado el 11,diciembre 2014 - 17:37
Thanks Piet.

That does the job.