Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

AttemptRemNamedObject

Attempt to remove a named object.

Declaration

Source position: utility.pas line 347

function AttemptRemNamedObject(

  obj: pNamedObject

):LongInt;

Function result

If the NamedObject can be removed, then it will be removed from the list. Otherwise the routine will just return. If the NamedObject has a removal message associated with it that message will be returned to the owner of the NamedObject.

Description

Attempts to remove an object from whatever NameSpace it's in. You must have found the object first (in order to get a use count) before trying to remove it. If the object is in use or is in the process of being removed, this function will return a failure code. If the object is fully removed, the object will then be available to be FreeNamedObject().

See also

RemNamedObject

  

Remove a named object.

AllocNamedObjectA

  

Allocate a named object.

AllocNamedObject

  

VarArgs Version for AllocNamedObjectA()

ReleaseNamedObject

  

Free a named object.

FreeNamedObject

  

Frees a name object.

AddNamedObject

  

Add a named object to the given namespace.

FindNamedObject

  

Find the next object of a given name.

NamedObjectName

  

Return the name of the object.


Documentation generated on: 2021-07-30