10-09-2005, 08:59 PM
In QM, variables must be at first declared. Examples:
str test ;;declare string variable test
test="hello" ;;assign string
out test ;;display it
;or
str test2="hello" ;;declare and assign in single line
;...
;or
str test3 test4 ;;declare 2 variables in single line
;or
str test5("hello") test6("again") ;;declare 2 variables and assign in single line
;For integer values, use int instead of str. For floating-point - double.
;By default, variables are local. To declare a global variable, use +, eg str+