Hi
frankp,
I have encountered the same problem. While waiting for the improvement and completion of the
Mid function, I have resolved as follows:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.....
.....
Dim xStr
.....
xStr = "ABCDEFG"
xStr = MidEx(xStr, 4, "H")
MsgBox xStr
.....
.....
Public Function MidEx(xString1 As String, xPosition As Integer, xString2) As String
Dim StrL As String
Dim StrR As String
If xString1 = "" Then xString1 = " "
If xPosition <= 0 Then xPosition = 1
StrL = Left(xString1, xPosition - 1)
StrR = Right(xString1, Len(xString1) - xPosition)
MidEx = StrL & xString2 & StrR
End Function
|
... won't be the best solution but works!
Best Regards,
maXim