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

# Length

## Declaration

`function Length(S: string): Integer;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Length('Flow Software'); //returns 13
end;
```

## Description

Returns the number of characters in the given string. All characters in the string are counted, including any characters like spaces.
