Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

Last Record

Call CTRecord.Last() to position the current record at the last record of a table. If the table is empty (i.e., the table contains no records, CTRecord.Last() returns false).

// get the last record of the table

try

{

if (ARecord.Last())

Console.Write("Last record found\n");

else

Console.Write("Table is empty\n");

}

catch (CTException err)

{

Console.Write("Last record failed with error {0}\n", err.GetErrorCode());

}

TOCIndex