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 HussainPosted Sep 17, 2013, 1:20 AM
Iftikar HussainPosted Sep 17, 2013, 1:32 AM
Regards,
Iftikar
Subin VarghesePosted Sep 17, 2013, 1:31 AM
Subin VarghesePosted Sep 17, 2013, 1:08 AM
Kunal VaishyaPosted Sep 17, 2013, 1:02 AM
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.
Iftikar HussainPosted Sep 17, 2013, 12:57 AM
What value you want to get it? Can you give example?
Regards,
Iftikar