12477.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: ListBox的属性Style设为' 2' 为核取方块,核取方块如何使用?</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: ListBox的属性Style设为' 2' 为核取方块,核取方块如何使用?</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by SuBird on April 29, 1999 at 13:50:27:<p>
In Reply to: <a href="12470.html">ListBox的属性Style设为' 2' 为核取方块,核取方块如何使用?</a> posted by jeff on April 29, 1999 at 10:08:03:<p>
: ListBox的属性Style设为' 2' 为核取方块,核取方块如何使用?<br>: 在ListBox的属性Style设为' 2' 为核取方块时<br>: 如何知道ListBox的项目中那一项目已经被核取?<p>Re:<br>由Selected(index)=Boolean可知哪个ListItem被选取<br>再由List(index)得知该名称为何,期间可由ListCount控制回圈去判断所有列示于ListBox的属性,例<br>With ListBox1<br>For i = 0 To .ListCount - 1<br>    If .Selected(i) Then<br>        If strSelectItem = "" Then<br>            strSelectItem = .List(i)<br>        Else<br>            strSelectItem = strSelectItem & ";" & . List(i)<br>        End If<br>    End If<br>Next<br>End With
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12477-->
</ul><!--end: 12477-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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