Difference between revisions of "BOF()"

From Lianjapedia
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to check if the record pointer is at the beginning of file
 
Function to check if the record pointer is at the beginning of file
 
  
 
==Syntax==
 
==Syntax==
 
BOF([<workarea | alias>])
 
BOF([<workarea | alias>])
 
  
 
==See Also==
 
==See Also==
 
[[ALIAS()]], [[DBF()]], [[EOF()]], [[FOUND()]], [[GOTO]], [[SELECT]], [[SELECT()]], [[SKIP]], [[USE]]
 
[[ALIAS()]], [[DBF()]], [[EOF()]], [[FOUND()]], [[GOTO]], [[SELECT]], [[SELECT()]], [[SKIP]], [[USE]]
 
  
 
==Description==
 
==Description==
 
The BOF() function returns .T. if an attempt is made to skip the record pointer before the first logical record of the currently selected table.  If the optional <workarea | alias> is specified, then the function will operate in the required location.
 
The BOF() function returns .T. if an attempt is made to skip the record pointer before the first logical record of the currently selected table.  If the optional <workarea | alias> is specified, then the function will operate in the required location.
 
  
 
==Example==
 
==Example==
Line 25: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Table Basics]]
 
[[Category:Table Basics Functions]]
 
 
[[Category:Cursor Functions]]
 
[[Category:Cursor Functions]]

Latest revision as of 10:50, 4 February 2013

Purpose

Function to check if the record pointer is at the beginning of file

Syntax

BOF([<workarea | alias>])

See Also

ALIAS(), DBF(), EOF(), FOUND(), GOTO, SELECT, SELECT(), SKIP, USE

Description

The BOF() function returns .T. if an attempt is made to skip the record pointer before the first logical record of the currently selected table. If the optional <workarea | alias> is specified, then the function will operate in the required location.

Example

use orders
? bof()
.F.
skip -1
? bof()
.T.