Purpose
Creates a string of repeating characters of a specified length.
Syntax
StrFill (NumericExpression, CharacterExpression)
NumericExpression |
The number of characters in the result string. |
CharacterExpression |
Either a string representation or the ANSI code of a character. If the character is passed as a string representation, only the first character of the string is used. |
Example
Sub Main()
Dim MyStringVariable As String
MyStringVariable = StrFill(5, "@") ' returns "@@@@@
Print MyStringVariable
...
End Sub
|