a | b | |
---|
| 0 | + | Function SubstrInterpoint(ByVal src As String) As String |
---|
| 0 | + | cr = Chr(13) |
---|
| 0 | + | lf = Chr(10) |
---|
| 0 | + | crlf = cr & lf |
---|
| 0 | + | s = Replace(src, crlf, lf) |
---|
| 0 | + | s = Replace(src, cr, lf) |
---|
| 0 | + | SubstrInterpoint = Substr(s, "・", lf) |
---|
| 0 | + | End Function |
---|
| 0 | + | |
---|
| 0 | + | Function Substr(ByVal src As String, ByVal startChar As String, ByVal endChar As String) As String |
---|
| 0 | + | If (src = "") Then |
---|
| 0 | + | Substr = "" |
---|
| 0 | + | Else |
---|
| 0 | + | startIndex = InStr(1, src, startChar, 1) |
---|
| 0 | + | If (startIndex < 1) Then |
---|
| 0 | + | Substr = "" |
---|
| 0 | + | Else |
---|
| 0 | + | endIndex = InStr(startIndex + 1, src, endChar, 1) - 1 |
---|
| 0 | + | If (endIndex < startIndex) Then |
---|
| 0 | + | endIndex = Len(src) |
---|
| 0 | + | End If |
---|
| 0 | + | Substr = Mid(src, startIndex, endIndex - startIndex + 1) |
---|
| 0 | + | End If |
---|
| 0 | + | End If |
---|
| 0 | + | End Function |
---|
... | |
---|