Revision 316363356466 () - Diff

Link to this snippet: https://friendpaste.com/5Z1A9z8ENNl0BtDiC4B9qn
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Function SubstrInterpoint(ByVal src As String) As String
SubstrInterpoint = Substr(s, "・", Chr(10))
End Function

Function Substr(ByVal src As String, ByVal startChar As String, ByVal endChar As String) As String
If (src = "") Then
Substr = ""
Else
startIndex = InStr(1, src, startChar, 1)
If (startIndex < 1) Then
Substr = ""
Else
endIndex = InStr(startIndex + 1, src, endChar, 1) - 1
If (endIndex < startIndex) Then
endIndex = Len(src)
End If
Substr = Mid(src, startIndex, endIndex - startIndex + 1)
End If
End If
End Function