gazeranco
Well-known member
I have made code to assign the title of an xml page to an array like so:-
The code is in a for next loop so the integer myitemint is going up each time and so should be assigning a different title to my array as it runs? I then use another for next loop to get the values inside the array but it returns blank messageboxes...
Help guys!
VB.NET:
[SIZE=2]
[/SIZE][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Not[/COLOR][/SIZE][SIZE=2] IsNothing(rssDetail) [/SIZE][SIZE=2][COLOR=#0000ff]Then
[/COLOR][/SIZE][SIZE=2]title = (rssDetail.InnerText)
[/SIZE][SIZE=2][COLOR=#0000ff]ReDim[/COLOR][/SIZE][SIZE=2] myarray(myitemint)
myarray(myitemint) = (title)
[/SIZE][SIZE=2][COLOR=#0000ff]Else
[/COLOR][/SIZE]
The code is in a for next loop so the integer myitemint is going up each time and so should be assigning a different title to my array as it runs? I then use another for next loop to get the values inside the array but it returns blank messageboxes...
VB.NET:
[SIZE=2][COLOR=#0000ff]
Dim[/COLOR][/SIZE][SIZE=2] a [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Integer[/COLOR][/SIZE][SIZE=2] = 0
[/SIZE][SIZE=2][COLOR=#0000ff]For[/COLOR][/SIZE][SIZE=2] a = 0 [/SIZE][SIZE=2][COLOR=#0000ff]To[/COLOR][/SIZE][SIZE=2] (myitemint)
MessageBox.Show(myarray(a))
a = a + 1
[/SIZE][SIZE=2][COLOR=#0000ff]Next
[/COLOR][/SIZE]
Help guys!