是艾伦吗
我可能在比特方面有所帮助,但你非常慷慨地说“基本上是我写的” "" 'this will stop it once it encounters a blank line
arrType1(I) = Replace(strTmp, "*", "")
Line Input #fFile, strTmp
arrName1(I) = strTmp
I = 1 + I
Line Input #fFile, strTmp
Wend
Close #fFile
ReDim Preserve arrType1(0 To I - 1)
ReDim Preserve arrName1(0 To I - 1)
ListBox1.List = arrType1
''Stop the repeat here
End Sub
[/code]
现在,由于两个数组都是索引对索引的匹配数组,所以当选择Insert按钮时,可以访问第二个数组“arrName1”,如下所示: