⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 6527.html

📁 VB技巧问答10000例,是一个教程
💻 HTML
字号:
<html>
  <head>
    <title>还要加上 Collectionm物件</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>还要加上 Collectionm物件</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:cww5@mail.ncku.edu.tw">cww</a> on October 16, 1998 at 08:30:57:<p>
In Reply to: <a href="6508.html">小吴高手,还是不行....</a> posted by 小EZ on October 15, 1998 at 12:36:56:<p>
您的需求不是ListBox本身可解决,要再加上Collection<br>物件的配合,比较有办法完成,的程式更改新增如下<p>Private coll as new Collection<p>Private Sub Command2_Click()<br>Dim str5 As Variant<p>'For i = 0 To List1.ListCount - 1<br>'If List1.Selected(i) Then<br>'List3.AddItem List1.List(i) & "*" & List2<br>'End If<br>'Next i<br>For Each str5 In coll<br>   List3.AddItem str5 & "*" & List2<br>Next<br>End Sub<p>Private Sub List1_Click()<br>With List1<br>     If .Selected(.ListIndex) Then<br>        coll.Add .Text, CStr(.ListIndex)<br>     Else<br>        coll.Remove CStr(.ListIndex)<br>     End If<br>End With<br>End Sub<p><br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 6527-->
</ul><!--end: 6527-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -