String: Difference between revisions

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


*All normal [[Variable Naming Requirements]] apply
*All normal [[Variable Naming Requirements]] apply

Revision as of 20:37, 9 January 2013

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 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