Switch to: V12V11V10V9V8V7V6V5

VTable Class: Navigation Methods

VTable.FirstRecord()

Declaration:

FirstRecord() as Boolean	

Description:

Goes to the first logical record of a Table. Reads the record from disk to the memory buffer of a Table.

  • Returns TRUE if the first record is found.
  • Returns FALSE if the Table is empty.

Example:

res = Table.FirstRecord()

VTable.LastRecord()

Declaration:

LastRecord() as Boolean	

Description:

Goes to the last logical record of a Table. Reads a record from disk to the memory buffer of a Table.

  • Returns TRUE if the last record is found.
  • Returns FALSE if the Table is empty.

Example:

res = Table.LastRecord()

VTable.PrevRecord()

Declaration:

PrevRecord() as Boolean					

Description:

Goes to the previous logical record of a Table. Reads a record from disk to the memory buffer of a Table.

  • Returns TRUE if the previous record is found (i.e. the current position was changed).
  • Returns FALSE if the current record was the first already or the Table is empty.

Example:

res = Table.PrevRecord()

VTable.NextRecord()

Declaration:

NextRecord() as Boolean

Description:

Goes to the next logical record of a Table. Reads a record from disk to the memory buffer of a Table.

  • Returns TRUE if the next record is found (i.e. the current position was changed).
  • Returns FALSE if the current record was the last already or the Table is empty.

Example:

res = Table.NextRecord()

VTable.RecordExists()

Declaration:

RecordExists(inRecID as Integer) as Boolean

Parameters:

  • inRecID - RecID of a record.

Description:

Returns TRUE if the record with the specified RecID exists in the table.

Example:

res = Table.RecordExists( RecID )