String: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
(edit)
Line 1: Line 1:
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.
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 [[:Category:Arrays|Arrays]] of strings.


*All normal [[Variable Naming Requirements]] apply
*All normal [[Variable Naming Requirements]] apply
Line 13: Line 13:


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

Revision as of 16:09, 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 Arrays 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