CTResource.Find
Find a resource by type and number of by name.
Declaration
CTBOOL CTResource.Find(ULONG type, ULONG number, CTBOOL lock) const;
CTBOOL CTResource.Find(const CTString& name, CTBOOL lock) const;
Description
The first overloaded method locates and retrieves a resource in a table based on type and number. Parameters type and number are values that should uniquely identify the resource and lock is used to indicate if the resource should be locked, if it is found.
The second overloaded method locates and retrieves a resource by name. c-tree Plus cannot guarantee unique resource names. Parameter name is the resource name and lock is used to indicate if the resource should be locked, if it is found.
Return
Returns YES if the resource was located and retrieved or NO if the resource could not be found. In case of error, a CTException is thrown.
See Also
CTResource.Add(), CTResource.Delete(), CTResource.Update(), CTResource.First(), CTResource.Next(), CTResource.GetType(), CTResource.SetType(), CTResource.GetNumber(), CTResource.SetNumber(), CTResource.GetName(), CTResource.SetName(), CTResource.GetDataLength(), CTResource.GetData(), CTResource.SetData(), CTResource.Unlock(), CTResource.IsLocked()