PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Re: :: HSeek and Native/OLEDB Access
Re: :: HSeek and Native/OLEDB Access
Iniciado por Peter van Vuuren, jan., 26 2004 11:20 AM - Sem resposta
Publicado em janeiro, 26 2004 - 11:20 AM
Hi,
The following line will force a server-side
update of the database cursor:
HRestorePosition(HSavePosition(FileName))
IF HFound(Filename) THEN
HRestorePosition(HSavePosition(FileName))
FileToScreen()

OK, but a little overdone. You have to keep in mind that
the HSeek(...) function just pointers to the record (if found) but
is not reading it (see Gill's comment & HReadSeek...() function)
If you want to use the HSeek() function then
---
HSeek(file,key,value)
IF HFound() then HRead(file,h.numrec)
---
must be enough.
Peter