#
CwGetHandleType

### Syntax:

    sType = CwGetHandleType(hnd)

            sType           (string) The type of the given handle.

            hnd             (handle) A handle.

### Description:

This function returns the type of the handle. That is, it returns a string naming the type of whatever the given handle "hnd" references. The possible return values are:

"Project" -- project handle "View" -- view handle "Effect" -- Effect (object) handle "Tool" -- Tool handle "Region" -- Region handle "Group" -- Handle to a group of objects "Application Defined" -- Handle returned by CwGetAppHandle

### Example:

    /* If the selected object is a group, ungroup its elements. */
    handle = CwGetSelectedObject()

    if CwGetHandleType(handle) = "Group" then do
            call CwUngroupObjects handle
            end

Functions by NAME | Index | Functions by PURPOSE