CONST fmCreate = 65535
CONST fmOpenRead = 0
CONST fmOpenWrite = 1
CONST fmOpenReadWrite = 2
CONST soFromBeginning = 0
CONST soFromCurrent = 1
CONST soFromEnd = 2
CONST False = 0
CONST True = 1
$INCLUDE "d:\rqdbase\dbt.inc"
$INCLUDE "d:\rqdbase\dbase.inc"
tablename$ = "d:\rqdbase\mymemos.dbf"
dbopen(tablename$, fmOpenReadWrite)
WHILE NOT eof()
PRINT fieldget(1)
PRINT fieldget(2)
PRINT
PRINT recno()
dbskip(1)
WEND
dbgoto(1)
PRINT fieldget(1)
PRINT fieldget(2)
PRINT "Current record "; recno()
dbclose
|