Description
When FutureBasic compiles your program, it associates a unique integer with each data type that your program uses. The typeof function returns the integer that's associated with the specified type. typeName should be the name of a type that was previously defined in a begin record statement or a #define statement; or the name of one of FutureBasic's built-in types (such as int, long, etc.). variable can the name of any variable. In this case, typeof returns the type ID number associated with the variable's type. Note that if the variable was not previously declared in a dim statement, and has no type-identifier suffix, typeof will assume that the variable's type is the default type (which is int unless a def<type> statement applies).
Note
The integer values returned by typeof are determined dynamically at compile time. You should not count on typeof( someType ) to return the same value every time your program is compiled.