BlueOysterCult
Regular
- Joined
- Oct 3, 2003
- Messages
- 84
I get a stack overflow error in the following code:
Help? What is the problem here?
Thanks
Rob
hi Mehyar
Help? What is the problem here?
Code:
Public Function FindArtist(ByVal strArtistToFind As String) As Integer
Dim ArtistIndex As Integer = FindArtist(txtFindBox.Text) >>>>> HERE is the problem<<<<<
Dim i As Integer
'loop through the array
For i = 0 To CdArray.Length - 1
If CdArray(ArtistIndex).strArtist = strArtistToFind Then
'we found the artist, return this index
Return i
End If
Next
'once this code is executed we know we didn't find an artist
Return -1
End Function
Thanks
Rob
hi Mehyar