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

# StringOfString

## Declaration

`Function StringOfString( const aText : string; aCount : longint) : string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := StringOfString('abc',5); //returns 'abcabcabcabcabc'
end;
```

## Description

Returns a string made up of aCount repetitions of aText. aText can be any string either 1 character or more.
