How to get the position of specific character in the string

Hi All,

I have a string D1168+89

Here I want to know at which position character “+” is present in the above string.

Here as we can se it is present at 6 th position , But how do we find out that.


Can you try IndexOf methos as the following?


This returns 5 as zero-based index.



Thankyou SO much , it worked

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.