BOF( ) Function

Example   See Also

Determines whether the record pointer is positioned at the beginning of a table.

Syntax

BOF([nWorkArea | cTableAlias])

Returns

Logical

Arguments

nWorkArea

Specifies the work area number for a table open in another work area.

cTableAlias

Specifies the table alias for a table open in another work area.

If the table you want to test for a beginning-of-file condition is open in a work area other than the currently selected work area, use these optional arguments to specify the work area number or table alias for the table. If a table isn't open in the work area you specify, BOF( ) returns false (.F.).

Remarks

Use BOF( ) to test for a beginning-of-file condition for a table. BOF( ) returns true (.T.) if you have tried to move the record pointer to a position before the first record in the table.