backward and forward throgh array help?!

BlueOysterCult

Regular
Joined
Oct 3, 2003
Messages
84
Hello all
I have a project that has a "next" button and a "previous" button. I am having troble with both of them - For hte next button its the array values:

Code:
   If Not EOF(gintCdFileNum) Then
            Input(gintCdFileNum, gstrArtist)
            Input(gintCdFileNum, gstrTitle)
            Input(gintCdFileNum, gshtYear)
            Input(gintCdFileNum, gstrCategory)

            If (intCurrent + 1) <= intLast Then
                intCurrent += 1
                CdArray().Artist()
                CdArray(intCurrent).Title()
                CdArray(intCurrent).Artist()
                CdArray(intCurrent).Artist()
                'What to put for the values here (after.Artist etc)
            Else
                intCurrent = 0

            End If
        End If

and the previuos button is worse - I am supposed to do the opposite of course put I am getting some kind of method nt exprersion error

[code]
 Private Sub MovePrevious(ByVal sender As System.Object, ByVal e As System.EventArgs) _
                Handles mnuActionPrevious.Click, btnPrevious.Click

        If (intCurrent <= 1) >= intLast Then
            intCurrent <= 1
            CdArray(intCurrent).Artist()
        End If

Can anyone help me? I have looked at it for so long I am not seeing what I am doing

Rob
 
I am to 'UpdateFormData' -(fill in textboxes) with the next record in the file and reverse with the previous button
Is that what you mean?
R
 
Back
Top