Name
GetObjectType -- retrieve type of an object handle (V5.0)
Synopsis
type = GetObjectType(handle)
Function
This function returns the type of the specified object handle. The object handle passed to this function must have been created using automatic id selection. See Auto id selection for details.

See Object types for a list of all object types.

Inputs
handle
handle of object whose type you want to retrieve
Results
type
type of the object handle
Example
my_anim = LoadAnim(Nil, "test.gif")
my_brush = LoadBrush(Nil, "test.png")
DebugPrint(GetObjectType(my_anim), GetObjectType(my_brush))
The code above will print the values of constants #ANIM and #BRUSH.

Show TOC