Top  Previous  Next

Strings are embedded in double quotes ("). If you want to use a double quote within a string, you have to duplicate that character.


Strings can be indexed by using the "[" and "]" characters. Strings are one based, that means that the first character of a string has the index 1. Str[1] returns the first character, Str[2] returns the second character, etc.



sText = "This is a text"

sText2 = "Embed strings in ""double quote"" characters"


ch = s[2]

s[1] = "A"

Translate document: