September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,11 +1,10 @@
|
|||
Public Function RepeatStr(aString As String, aNumber As Integer) As String
|
||||
Dim bString As String
|
||||
|
||||
bString = aString
|
||||
If aNumber > 1 Then
|
||||
For i = 2 To aNumber
|
||||
bString = bString & aString
|
||||
Next i
|
||||
End If
|
||||
RepeatStr = bString
|
||||
Dim bString As String, i As Integer
|
||||
bString = ""
|
||||
For i = 1 To aNumber
|
||||
bString = bString & aString
|
||||
Next i
|
||||
RepeatStr = bString
|
||||
End Function
|
||||
|
||||
Debug.Print RepeatStr("ha", 5)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
Public Function RepeatString(stText As String, iQty As Integer) As String
|
||||
RepeatString = Replace(String(iQty, "x"), "x", stText)
|
||||
RepeatString = Replace(String(iQty, "x"), "x", stText)
|
||||
End Function
|
||||
|
|
|
|||
1
Task/Repeat-a-string/VBA/repeat-a-string-3.vba
Normal file
1
Task/Repeat-a-string/VBA/repeat-a-string-3.vba
Normal file
|
|
@ -0,0 +1 @@
|
|||
Debug.Print String(5, "x")
|
||||
Loading…
Add table
Add a link
Reference in a new issue