ScriptBasic:UsersGuide 25.179

From ScriptBasic
Jump to: navigation, search

[Contents]

25. Command reference

25.179. TYPE

[<<<] [>>>]


This function can be used to determine the type of an expression. The function returns a numeric value that describes the type of the argument. Although the numeric values are guaranteed to be the one defined here it is recommended that you use the predefined symbolic constant values to compare the return value of the function against. The function return value is the following

  • SbTypeUndef 0 if the argument is undef.
  • SbTypeString 1 if the argument is string.
  • SbTypeReal 2 if the argument is real.
  • SbTypeInteger 3 if the argument is integer.
  • SbTypeArray 4 if the argument is an array.

See also ISARRAY, ISSTRING, ISINTEGER, ISREAL, ISNUMERIC, ISDEF, ISUNDEF, ISEMPTY.


[<<<] [>>>]