Hi, I am wondering what I am doing wrong here. I know this is probably very basic but I just can't do it, I have spent the last 2 hours trying everything and it just won't work. I am trying to find within the graphicspeed array, what is higher than the speed that the user enters and display only the ones higher than it. I have tried everything I can think of but no cigar. Here's the code of what I tried last.Could anyone give me advice or a pointer to which I am going wrong? This is been pickling my head for a quite a while now.
Thanks
Code:
Private Sub findfaster(ByVal graphicscard() As String, ByVal graphicspeed() As Integer)
Dim counter As Integer
Dim speed As Integer
speed = InputBox("Please enter minimum speed")
For counter = 1 To 5
If graphicspeed(counter) > speed Then
speed = counter
End If
Next
ListBox1.Items.Add(graphicscard(speed) & graphicspeed(speed))
End Sub