Name
SetVarType -- declare a variable / OBSOLETE
Synopsis
SetVarType(var, type[, arraysize])
Function
As of Hollywood 2.0, this function is obsolete and only included for compatibility reasons.

This function can be used to declare a variable. You only have to declare variables that are different from the default type (#LONG) and which do not have an identifier in their name like the "$" for strings or the "!" for floats. Arrays always have to be declared by specifying the optional argument arraysize.

Inputs
var
variable name to declare
type
desired type (can be #LONG, #FLOAT, #STRING)
arraysize
optional: if you specify this argument, an array of the specified size will be allocated for you instead of a single variable

Show TOC