Well, like I said above, the kinds of names you can use are listed on my
variables page.
Reposted here:
Variables have names to differentiate themselves from other variables.
You can name a variable anything you want such as:
variable, variable2, apple, answer, lljwjdiisen3mm, AVeryLongNameThatUsesCapsSoYouCanReadIt, Q, Jamie, tree, etc.
as long as the name of the variable meets these three conditions:
it starts with a letter,
it has no spaces, or special characters
it isn't the same as a word already used by the BASIC language (such as Print, or Delay).
and this is what it states in your Blitz Basic Language Reference on Identifiers:
Identifiers are used for constant names, variable names, array names, function names and custom type names.
Identifiers must start with an alphabetic character, and may be following be any number of alphanumeric characters, or the underscore ('_') character.
These are all valid identifiers:
- Hello
- Score
- player1
- time_to_live
- t__
Indentifiers are not case sensitive.
For example, 'Test', 'TEST' and 'test' are all the same identifiers.
However, it is allowed for identifiers to be reused for functions and custom types names.
For example, you can have a variable called 'test', a function called 'test' and custom type name called 'test'. Blitz will be able to tell which one you are refering to by the context in which it is used.