2個引數:陣列、結合符號
code:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function ARRAY_Pile(INPUT_ARRAY, SYMBOL) | |
If IsArray(INPUT_ARRAY) = True Then | |
Dim ARRAY_STOCK_TOTAL As String | |
For i = LBound(INPUT_ARRAY) To UBound(INPUT_ARRAY) Step 1 | |
If i = LBound(INPUT_ARRAY) Then | |
ARRAY_STOCK_TOTAL = INPUT_ARRAY(i) | |
Else | |
If INPUT_ARRAY(i) <> "" Then | |
ARRAY_STOCK_TOTAL = ARRAY_STOCK_TOTAL & SYMBOL & INPUT_ARRAY(i) | |
End If | |
End If | |
Next i | |
ARRAY_Pile = ARRAY_STOCK_TOTAL | |
Else | |
ARRAY_Pile = INPUT_ARRAY '2020.12.24 ARRAY_STOCK = 0 | |
End If | |
End Function |
沒有留言:
張貼留言