Calling convention: GetObjectID(["ObjectName": String]): Integer
Description: Returns the current object's ID, or resolves an explicitly named object.
Parameters:
ObjectName: optional object name. When omitted, the current object is used.
Returns: Object ID. An invalid named object raises an error. With no argument and no current object, the current implementation leaves the result undefined.
Availability: Default.
Example:
ObjectID := GetObjectID("Production");