J'ai ce codebinaire Rechercher un tableau
Dim intSelection As Integer
Dim intIndexLocation As Integer
intSelection = cboGenres.SelectedIndex
intIndexLocation = Array.BinarySearch(strGenre, intSelection)
If intIndexLocation >= 0 Then
lstPlayList.Items.Add(strSongs(intIndexLocation))
End If
strGenre est mon tableau, mais je reçois une erreur « Impossible de comparer deux éléments dans le tableau. » Je ne comprends pas pourquoi cela ne fonctionne pas
Quelle langue est-ce? –
Cela semble être Visual Basic – mhodges