---
url: /flow/guide/scripting-reference/functions/string/reversestring.md
---

# ReverseString

## Declaration

`function ReverseString(const S: string): string;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := ReverseString('FLOW123'); //returns '321WOLF'
end;
```

## Description

Returns a string with the sequence of characters reversed.
