SubstrInterpoint delete lock Revision 316363356466 (Wed Jan 18 2012 at 14:23) - Diff Link to this snippet: https://friendpaste.com/5Z1A9z8ENNl0BtDiC4B9qn Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617181920Function SubstrInterpoint(ByVal src As String) As String SubstrInterpoint = Substr(s, "・", Chr(10))End FunctionFunction 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 IfEnd Function