Previous Topic

Next Topic

LastVRecord

Read the last variable-length data record.

Short Name

LSTVREC()

Type

ISAM function

Declaration

COUNT LastVRecord(COUNT filno, pVOID recptr, pVRLEN plen)

Description

LastVRecord() is identical to it’s fixed-length counterpart, LastRecord(), except that it reads the last variable-length data record in the data file. If successful, this record becomes the current ISAM record for the associated data file. plen acts as both an input and output parameter. On input, plen contains the length of the output buffer. On output, plen contains the actual data record length. If the length of the output buffer is less than the actual record length, a partial read is performed.

Read the function description for LastRecord() for additional important information.

Return

Value

Symbolic Constant

Explanation

0

NO_ERROR

Successful retrieval of current ISAM record.

633

NPLN_ERR

plen is NULL.

634

NLEN_ERR

plen is negative on input.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

See also

LastRecord(), NextVRecord(), PreviousVRecord(), TransformKey()