- Name
-
GetObjects -- get all objects of specified type (V5.1)
- Synopsis
-
table, count = GetObjects(type)
- Library
-
object
- Function
-
This function can be used to retrieve a list of all objects of the specified type
that are currently in memory. This function will return a table containing the
identifiers of the objects as well as the total number of objects of the specified
type.
See Object types for a list of all object types.
- Inputs
-
- type
- return objects of this type
- Results
-
- table
- a table containing identifiers of all objects of the specified type
- count
- number of items in the table
- Example
-
t, c = GetObjects(#BRUSH)
For Local k = 0 To c - 1 Do DebugPrint(t[k])
The code above will list all objects of type #BRUSH currently in memory.