-1
試圖弄清楚我如何搜索數組中的字符串。截至目前,我只知道如何搜索整數。我的數組是這樣的:VB.net搜索數組中的字符串
Dim IDno() As String = {264, 951, 357}
Dim author() As String = {"Peter", "Nathan", "Sandy"}
所以截至目前,如果在數951人的類型,我的列表框中會顯示:
編號:951
名稱:彌敦道
我想知道如何讓用戶搜索名稱,並顯示ID#和名稱。
這個問題可能會幫助你:https://stackoverflow.com/questions/16713474/vb-net-find-a-string-in-an-array – muffi
可能重複的[VB.NET在一個數組中找到一個字符串](http://stackoverflow.com/questions/16713474/vb-net-find-a-string-in-an-array) –
@AndrewMorton你的意思是,複製副本?! – David