AllocateID()

Generates unique ID's for general purposes.

LONG AllocateID(IDTYPE Type)
ParameterDescription
TypeThe type of ID that is required.

This function generates unique ID's that can be used in other Core functions. A Type indicator is required and the resulting number will be unique to that Type only.

ID allocations are permanent, so there is no need to free the allocated ID once it is no longer required.

Result

A unique ID matching the requested type will be returned. This function can return zero if the Type is unrecognised, or if an internal error occurred.