i have string like "NIFTY29-12-2016CE6300.00" and i want output as : "NIFTY_29-12-2016_6300_CE"
the problem is first part i.e.(NIFTY) is not fixed in length it can be abcd,rdftghe or anything And last part i.e.(6300.00) is also not fixed length it can be 123.8888888.23.88989 or anything
try this code to get position of the first digit in a string and i able to concat "_" before that the code is as follow :
If InStr(CStr(rs.Fields!Symbol), "CE") Then
StrOg = CStr(rs.Fields!Symbol)
For i = 1 To Len(StrOg)
currentCharacter = Mid(StrOg, i, 1)
If IsNumeric(currentCharacter) = True Then
GetPosChar = i
Exit For
End If
Next i
strtemp = Left(StrOg, GetPosChar) & "_" & Right() & "_"
Else
i'm acheving till this :"NIFTY_" please help me!!!! thanks in advance