### Variable Names

Posted:

**Sat Nov 06, 2004 8:13 am**NeoBook variable names can be longâ€”very long! I tested variables with names having more than 100,000 characters (it was a long, boring night).

Variable names may include ~`!{}|\+<>.-_@#$%^&*():;',?/ as well as the more familiar a-z, A-Z, and 0-9 characters. All of the following assignments are valid.

Characters not permitted in variable names are '[' (left bracket), ']' (right bracket), '"' (double quote), and '=' (equal sign). For example, the following variable assignment is invalid because of the '=' sign.

Variable names are case insensitive. That is, SetVar "[a]" "A" and SetVar "[A]" "A" each assign a value to the same variable [A].

Variable names may include ~`!{}|\+<>.-_@#$%^&*():;',?/ as well as the more familiar a-z, A-Z, and 0-9 characters. All of the following assignments are valid.

- Code: Select all
`setvar "[a~b]" "a~b"`

setvar "[a`b]" "a`b"

setvar "[a!b]" "a!b"

setvar "[a{b]" "a{b"

setvar "[a}b]" "a}b"

setvar "[a|b]" "a|b"

setvar "[a\b]" "a\b"

setvar "[a+b]" "a+b"

setvar "[<ab>]" "<ab>"

setvar "[a.b]" "a.b"

setvar "[a-b]" "a-b"

setvar "[a_b]" "a_b"

setvar "[a@b]" "a@b"

setvar "[a#b]" "a#b"

setvar "[a$b]" "a$b"

setvar "[a%b]" "a%b"

setvar "[a^b]" "a^b"

setvar "[a&b]" "a&b"

setvar "[a*b]" "a*b"

setvar "[a(b]" "a(b"

setvar "[a)b]" "a)b"

setvar "[a b]" "a b" ..space between letters

setvar "[a:b]" "a:b"

setvar "[a;b]" "a;b"

setvar "[a'b]" "a'b"

setvar "[a,b]" "a,b"

setvar "[a?b]" "a?b"

setvar "[a/b]" "a/b"

Characters not permitted in variable names are '[' (left bracket), ']' (right bracket), '"' (double quote), and '=' (equal sign). For example, the following variable assignment is invalid because of the '=' sign.

- Code: Select all
`setvar "[a=b]" "a=b"`

Variable names are case insensitive. That is, SetVar "[a]" "A" and SetVar "[A]" "A" each assign a value to the same variable [A].