Variable Naming Requirements: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Variable Naming Requirements''' apply to both [[String]] and [[Numeric]] [[Variable|variables]].
'''Variable Naming Requirements''' apply to both [[String]] and [[Numeric]] [[Variable|variables]].


* May contain any letter or number or underscore.
* May contain any letter, number or underscore.
* Must begin with a letter or underscore.
* Must begin with a letter or an underscore.
* May not contain dashes, spaces or any characters other than letters and underscores. In other words, characters such as <nowiki> - , ; : * ! @ # $ % ^ & ( ) + </nowiki> and many others are not allowed in a variable name.
* May not contain dashes, spaces or any characters other than letters and underscores. In other words, characters such as <nowiki> - , ; : * ! @ # $ % ^ & ( ) + </nowiki> and many others are not allowed in a variable name.
* May not exceed 30 characters
* May not exceed 30 characters.
* May not start with "fn" as that prefix is reserved for [[User Defined Functions]]
* May not start with "fn" as that prefix is reserved for [[User Defined Functions]].
* BR variable names are case-insensitive, so myVariable$ and Myvariable$ will refer to the exact same variable.
* BR variable names are case-insensitive, so myVariable$ and Myvariable$ will refer to the exact same variable.
* String variable names must end with a $.


<noinclude>
<noinclude>
[[Category:Variable]]
[[Category:Variable]]
[[Category:Basics]]
</noinclude>
</noinclude>

Latest revision as of 16:01, 8 May 2014

Variable Naming Requirements apply to both String and Numeric variables.

  • May contain any letter, number or underscore.
  • Must begin with a letter or an underscore.
  • May not contain dashes, spaces or any characters other than letters and underscores. In other words, characters such as - , ; : * ! @ # $ % ^ & ( ) + and many others are not allowed in a variable name.
  • May not exceed 30 characters.
  • May not start with "fn" as that prefix is reserved for User Defined Functions.
  • BR variable names are case-insensitive, so myVariable$ and Myvariable$ will refer to the exact same variable.
  • String variable names must end with a $.