PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → :: HSeek and Native/OLEDB Access
:: HSeek and Native/OLEDB Access
Débuté par Kevin Willis, 26 jan. 2004 02:16 - 2 réponses
Posté le 26 janvier 2004 - 02:16
I have an Access database and I'm using HSeek
to locate a particular group of records.
It locates the record, but FileToScreen()
does not grab the correct record data
and place it in the screen controls.
Can this be corrected?
Posté le 26 janvier 2004 - 02:36
The following line will force a server-side
update of the database cursor:
HRestorePosition(HSavePosition(FileName))
IF HFound(Filename) THEN
HRestorePosition(HSavePosition(FileName))
FileToScreen()
...
END

I have an Access database and I'm using HSeek
to locate a particular group of records.
It locates the record, but FileToScreen()
does not grab the correct record data
and place it in the screen controls.
Can this be corrected?



http://www.westcoastsoftwaresolutions.com
Posté le 26 janvier 2004 - 08:35
Kevin,
Use a Hreadseekfirst(file,keyy, variable to search for) to set the file to the correct record first.
EXample
HReadSeekFirst(Myfile, Mykey, current record)
if hfound then
FileToScreen(Myfile)
I have an Access database and I'm using HSeek
to locate a particular group of records.
It locates the record, but FileToScreen()
does not grab the correct record data
and place it in the screen controls.
Can this be corrected?