---
url: >-
  /statelake/scripting-reference/functions-and-procedures/string-functions/stringofstring.md
---

# StringOfString

**StringOfString** returns a string made up of **aCount** repetitions of **aText**.

**aText** can be any string - either a single character or more.

**Declaration**: Function StringOfString( const aText : string; aCount : longint) : string

Below is an example.

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