Hi
I have created a programme in VB.NET in which I use string variables like
Move1, Move2, Move3.... Move8
Now I ned to access the values stored in these variables through a loop. So I used FOR Loop
Like this:-
For I = 1 To 8
If Len("Move" & I) > 0 Then
Console.WriteLine("Move" & I)
End If
Next
But I am not able to get the value from Move1 ..till.. Move8. What can be the reason and a possible solution for this. I hope you got my question.
Thanks

Iftikar HussainRank #423 · 5.9K reputationPosted Sep 16, 2013, 9:20 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Sep 16, 2013, 8:57 PM EDT
What value you want to get it? Can you give example?
Regards,
Iftikar
Kunal VaishyaRank #990 · 2K reputationPosted Sep 16, 2013, 9:02 PM EDT
i have checked with below code
For I = 1 To 8
If Len("Move" & I) > 0 Then
MessageBox.Show("Move" & I)
End If
Next
Can you explain what you want to do exactly.
Subin Varghese5 reputationPosted Sep 16, 2013, 9:08 PM EDT
Subin Varghese5 reputationPosted Sep 16, 2013, 9:31 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Sep 16, 2013, 9:32 PM EDT
Regards,
Iftikar