Core Function isVarGUIObject

From Sputnik Wiki
Jump to: navigation, search
isVarGUIObject( $variable, <type> )

Contents

Description

Check if a variable's object type is a GUI Object (Buttons etc).

Parameters

variable

The variable to check.

type

Optoinal; The type to check against valid types are:

[TYPE]			[DETAILS]
"button"
"textbox"
"datagrid"
"label"
"checkbox"
"tabsheet"
"tabpage"
"groupbox"
"radiobutton"
"progressbar"

Default just checks if it IS an object type or not.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

$var1 = GUICreate("Window", "Test");
println( "Is it?: " . isVarGUIObject($var1) );
// Alternative
println( $var1 is Window  );
// Alternative
println( $var1 ~~ Window  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox