Character of a string
The individual characters of a string can be accessed, appending it's index in curved brackets. They can be used like a varaiable of the datatype character.
Example:
DIM b$[2]
a$="test string"
b$[0]="Wolfgang"
b$[1]="Ortmann"
? a${5} : ! Output of 'S'
? b$[0]{6},b$[1]{5},b$[1]{6} : ! Output of 3 'n'
a${2}='x'
? a$ : ! Output: "text string" |
|