please have at look on my issue.
I have following string "F) GND G) FL240)" in my Control.
I'm trying to parse the string between "F)" and "G)" and also between "G)" and ")" with following code
If Left(s, 2) = "F)" Then
'Task - Filled ItemF with value "GND" or other values between "F)" and "G)"
ItemF = Mid(s, InStr(s, "F)") + 3, Len(s) - InStr(s, "G)"))
'or
'ItemF = Mid(s, InStr(s, "F)") + 3, Len(s) - Len(Right(s, InStr(s, "G)"))))
'Task - Filled ItemG with value "FL240" or other values between "G)" and ")"
ItemG = Mid(s, InStr(s, "G)") + 3, Len(s) - InStr(s, "G)")) - how I can exclude last ")"
End If
Could you explain please, how to separate and parse values between "F)" and "G)" and also between "G)" and ")"