Skip to content

Commit

Permalink
add string repeat function
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneu committed May 8, 2019
1 parent daabfd2 commit e657f51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Modules/StringExtensions.bas
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,12 @@ Public Function CharAt(ByVal text As String, ByVal index As Integer) As String
CharAt = Mid(text, index, 1)
End Function


Public Function Repeat(ByVal text As String, ByVal count As Integer) As String
Repeat = ""

Dim i As Integer
For i = 1 To count
Repeat = Repeat & text
Next
End Function

0 comments on commit e657f51

Please sign in to comment.