Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/Nested-function/VBA/nested-function.vba
Normal file
20
Task/Nested-function/VBA/nested-function.vba
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Option Explicit
|
||||
|
||||
Private Const Sep As String = ". "
|
||||
Private Counter As Integer
|
||||
Sub Main()
|
||||
Dim L As Variant
|
||||
Counter = 0
|
||||
L = MakeList(Array("first", "second", "third"))
|
||||
Debug.Print L
|
||||
End Sub
|
||||
Function MakeList(Datas) As Variant
|
||||
Dim i As Integer
|
||||
For i = LBound(Datas) To UBound(Datas)
|
||||
MakeList = MakeList & MakeItem(Datas(i))
|
||||
Next i
|
||||
End Function
|
||||
Function MakeItem(Item As Variant) As Variant
|
||||
Counter = Counter + 1
|
||||
MakeItem = Counter & Sep & Item & vbCrLf
|
||||
End Function
|
||||
Loading…
Add table
Add a link
Reference in a new issue