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
you mean a list of strings? a list of chars?
lists have an .IndexOf method you can use
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.