PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Re: :: HSeek and Native/OLEDB Access
Re: :: HSeek and Native/OLEDB Access
Débuté par Peter van Vuuren, 26 jan. 2004 11:20 - Aucune réponse
Posté le 26 janvier 2004 - 11:20
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