Strings are enclosed in " characters. If you want to use a " within a string, you must duplicate this character.


Strings are one-based, which means that the first character of a string has the index 1. Mid($s,1,1) returns the first character, Mid($s,2,1) returns the second character, and so on.


Examples:

Dim $s = "This is a string"
Dim $i, $ch

$ch = Mid($s, 1, 1) 'returns "T"
$ch = GetChar($s, 1) 'returns "T"

$i = 42
$s = "Value of ""i"" is " + $i