Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTResource.First

Retrieve the first resource stored in a table.

Declaration

CTBOOL CTResource.First(CTBOOL lock) const;

Description

Retrieves the first resource stored in a table. lock is used to indicate if the resource should be locked, if it is found.

Return

Returns YES if the first resource was retrieved or NO if first resource does not exist. In case of error, a CTException is thrown.

See Also

CTResource.Add(), CTResource.Delete(), CTResource.Update(), CTResource.Next(), CTResource.Find(), CTResource.GetType(), CTResource.SetType(), CTResource.GetNumber(), CTResource.SetNumber(), CTResource.GetName(), CTResource.SetName(), CTResource.GetDataLength(), CTResource.GetData(), CTResource.SetData(), CTResource.Unlock(), CTResource.IsLocked()

TOCIndex