Freedom Computers

ACCESS

Repeat characters in a string

String Function Example
This example uses the String function to return repeating character strings of the length specified.

Dim MyString
MyString = String(5, "*") ' Returns "*****".
MyString = String(5, 42) ' Returns "*****".
MyString = String(10, "ABC") ' Returns "AAAAAAAAAA".