DbBof

ODBC function.

The DbBof function tests whether the read pointer is at the beginning of the dataset or not. Not available in WinTask Lite.

Syntax

Ret = DbBof()

Return value

Ret, numeric return code. Ret equals 1 if the pointer is before the first record of the dataset, 0 if not.

Example

 

DbConnect("DSN=gpao;PWD=SILOG") ' connection to ODBC database called gpao

DbSelect("SELECT * FROM Business",DYNASET) ' select all records in table Business.

If DbBof=1 then ' no record in the selection.

stop ' then stop the script.

else ' if records are in selection, continue.

'other statements
endif