Hi All,

I am still new to VB, so I need a little help please. I am trying to move to the next array in the below code. i know its very simple, but once the "clickbutton" check has been completed for varArray(0) , how do i move to varArray(1)?

Any help would be grateful.

Thanks.

Dim varArray(0 To 1) As Variant

varArray(0) = "http://www.bbc.co.uk"
varArray(1) = "http://www.vbforum..com"

GoToPage (varArray(0))

ClickButton ""
If ClickButton = True Then
WriteToLog "button found"

End If
End Sub