Core Function isVarGUIObject
From Sputnik Wiki
(Difference between revisions)
(→type) |
m (1 revision) |
||
| (3 intermediate revisions by one user not shown) | |||
| Line 34: | Line 34: | ||
=== Return Value === | === Return Value === | ||
| − | Success: Returns | + | Success: Returns true. |
| − | Failure: Returns | + | Failure: Returns false. |
=== Remarks === | === Remarks === | ||
| Line 45: | Line 45: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
| − | $var1 = " | + | $var1 = GUICreate("Window", "Test"); |
println( "Is it?: " . isVarGUIObject($var1) ); | println( "Is it?: " . isVarGUIObject($var1) ); | ||
| − | println | + | // Alternative |
| + | println( $var1 is Window ); | ||
| + | // Alternative | ||
| + | println( $var1 ~~ Window ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] | ||
Latest revision as of 12:37, 14 June 2015
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 );