Name
HaveObject -- check if a certain object is available (V5.2)
Synopsis
r = HaveObject(type, id)
Function
This function can be used to check whether a certain object has already been loaded. Just pass the object's type and identifier to this function and it will return True or False depending on whether or not the object is in memory.

See Object types for a list of all object types.

Inputs
type
type of the object to check
id
identifier of the object to check
Results
r
True if object is available, False otherwise
Example
DebugPrint(HaveObject(#BRUSH, 1))
The code above prints True if brush number 1 is in memory, otherwise False.

Show TOC