TResourceTreeNode.FindFreeID function
Find a free ID to be used as a resource name
Declaration
function FindFreeID(aType: TResourceDesc): TResID; virtualArguments
aType | The type of the resource |
Function result
A new resource ID
Description
This method is used to find an available ID to be used as a name for a resource, given a resource type. It is used internally by AddAutoID method of TResources.
This method should only be called on root nodes (instances of TRootResTreeNode).
Errors
If there are no free ids left for the given resource type, an ENoMoreFreeIDsException is raised.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
