How to find value

Use the IndexOf method to find the first occurrence of ‘u’, ‘g’, and ‘j’ in the string:

a = inputString.IndexOf(“u”)
b = inputString.IndexOf(“g”)
c = inputString.IndexOf(“j”)

This will return the index of the 1st occurrence
Then use the below one
Assign uValue = inputString.Substring(a + 1, 1)
Assign gValue = inputString.Substring(b + 1, 1)
Assign jValue = inputString.Substring(c + 1, 1)

This is how you can use String manipulation for the above scenario @Ninad_Falke

1 Like