window.getType

Syntax window.getType (adr)

Params adr is the address of a window-based object whose type you want to determine.

Action Determines the type of the object.

Returns The type of the object.

Examples window.getType (@workspace.notepad)

   » 'optx'

window.getType (@workspace.notepad) == outlineType

   » true

window.getType (@examples)

   » 'tabl'

Notes Although this verb returns a four-character type identifier, you never need to use this information in your scripts. Frontier defines a constant for each of these types: see system.compiler.language.constants. Also see the second example above.

See Also typeOf

Discuss