-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