REVERSE$()

REVERSE$(S)

RETURNS THE STRING S WITH REVERSED CHARACTER ORDER

  • Type: Function
  • Parameter: 1
  • Group: Strings

ACTION

The function REVERSE$(S) returns a string returns a string in which the character order of S is reversed.

Remark: the keyword REVERSE$ ends by '$' : it means that the returned value is a string.

SYNTAX: Result$=REVERSE$(S)

  • S = string expression.
  • Result$ is a string.

USE

  • The function REVERSE$() is used to reverse a string.

ERROR

  • If S is not a correct string expression.

EXAMPLE

print reverse$("Hello")

print "olleH"

SEE ALSO

INSERT$()

LEFT$()

LOWER$()

LTRIM$()

MID$()

RTRIM$()

STR$()

STRING$()

TRIM$()

UPPER$()