String

GS undefined A character string is a variable or constant that contains one or more printable or unprintable characters. A string usually contains only characters from the ASCII Table. Strings' contents is always surrounded by two apostrophes ('), for example:

In fact, strings are used very often, especially when writing messages on the screen: The text between the apostrophes is in fact a character string.

The advantages and the disadvantages of the character string
The character string is more simple to work with, to "play" with and to manage. Although character strings can not be supposed to addition, substraction, multiplication or division, even if they contain numbers. The plus (+) sign will concatenate two strings, while any other signs will cause an error. For example: Note that the strings are case-sensitive but there is a method to make all the characters uppercase, using the Upcase function.

A character in a string can be retrieved by telling the position of it, just like in vectors. For example, if s:='abc', then s[1] is a, s[2] is b, s[3] is c.

Str and Val</tt>
The str</tt> and the val</tt> function convert a number into a string and back.

For more information on these functions and other functions also, see String operations.