IS
Result = Expression [ NOT ] IS Class
Returns
TRUE if an object is an instance of a class, or one of its descendants.
If
NOT
is specified, the test is inverted.
-
Expression is any expression that returns an object reference.
-
Class is a class name.
Examples
PRINT ["Gambas", "rules!"] IS String[]
DIM myTextBox AS NEW TextBox(ME)
PRINT myTextBox IS Control
PRINT ["Gambas", "rules!"] IS Collection
Examples
PRINT ["Gambas", "rules!"] Not Is Collection
See also