Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2010 Advice?

$
0
0
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.

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

Thanks

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>