Re: Calculating string sums
I am not sure if there is any function in VB to do so, but I can create a simply one by using Split() function. As following:
===
Private Function GetSum(strTheSumString As String) As Long
Dim str() As String
Dim intRV As Integer
str = Split(strTheSumString, "+")
intRV = CInt(str(0)) + CInt(str(1))
GetSum = intRV
End Function
===
Good luck!
Regards,
Michi
MCSE, MCDBA
Re: Calculating string sums
Try this link it seems to do ehat you need!
http://www.freevbcode.com/ShowCode.Asp?ID=1263
Kris
Software Engineer
Phoenix,AZ