Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# IndexOf

string word = "Hello";
int where = word.IndexOf("e");
// int where returns index number where the letter "e" is located.
// --0-1-2-3-4-- < Index number
// --H-e-l-l-o-- < Word
// In this case, the letter "e" is located in the index number 1
 
PREVIOUS NEXT
Tagged: #IndexOf
ADD COMMENT
Topic
Name
1+8 =