I tried to use int instead of string, however i don't know how to put string elements inside an array of integers.
Did it this way:
Code:
int[] str = new int[100];
for (int k = 0; k < textBox1.Text.Length; k++)
{
string z=textBox1.Text;
str[k] = textBox1.Text.IndexOf(z,k); //this should put str[0]=textbox1.text[0]
Leave a comment: