GUI textbox's accepting array number and string

For text boxes, you receive a STRING (always), not number.
To convert string to number use StrToNum() function.

Number (scalar) can be used anywhere where you need a scalar OR array.

For more information: