String: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
(edit)
Line 15: Line 15:
[[Category:Basics]]
[[Category:Basics]]
[[Category:Terminology]]
[[Category:Terminology]]
[[Category:Variable]]
</noinclude>
</noinclude>

Revision as of 15:53, 6 January 2012

A string or string variable is a variable which may contain any type of characters. Strings are one of the two types of variables available in BR, the other is numeric. Strings may be formed into an Array of strings.

  • All normal Variable Naming Requirements apply
  • Variable name must end with $ (the $ does not count against the 30 character variable name limitation)
  • Default Dim Length of 18 characters

Below is an example of the use of a string in a short program:

00010 let myString$ = "BR kicks butt"
00020 print myString$

To learn more about the use of string variables, refer to the String operations section