Find index of Find variable

Right now I'm locating a variable using the Find method. Obviously this is searching for it inside a List. The question is how do I grab that variables position after? Since I will want to reference that spots index again later
3 Replies
this_is_pain
this_is_pain•3mo ago
you mean a list of strings? a list of chars?
becquerel
becquerel•3mo ago
lists have an .IndexOf method you can use
becquerel
becquerel•3mo ago
List.IndexOf Method (System.Collections.Generic)
Returns the zero-based index of the first occurrence of a value in the List or in a portion of it.

Did you find this page helpful?