Core Function isVarGUIObject

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> isVarGUIObject( $variable, <type> ) </pre> === Description === Check if a variable's object type is a GUI Object (Buttons etc). === Parameters === ==== variable ==== T...")
Newer edit →

Revision as of 01:37, 13 December 2011

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"

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

Return Value

Success: Returns 1.

Failure: Returns 0.

Remarks

None.

Example

$var1 = "check me";
println( "Is it?: " . isVarGUIObject($var1) );
println( "Is it?: " . isVarGUIObject($var1, "groupbox") );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox