Name
ReverseStr -- reverse order of characters in string (V7.0)
Synopsis
r$ = ReverseStr(s$[, encoding])
Function
Reverses the order of characters in string s$ and returns the new string.

The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.

Inputs
s$
input string
encoding
optional: character encoding to use (defaults to default string encoding)
Results
r$
reversed string
Example
r$ = ReverseStr("Hello")
Print(r$)
This prints "olleH".

Show TOC