19574.html

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

HTML
23
字号
<html>  <head>    <title>Re: 请问如何将字串 转为 清单中的 列表(List)</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>Re: 请问如何将字串 转为 清单中的 列表(List)</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:jtomail@tomail.com.tw">j</a> on October 03, 1999 at 02:00:51:<p>In Reply to: <a href="19568.html">请问如何将字串 转为 清单中的 列表(List)</a> posted by Alec on October 02, 1999 at 18:14:04:<p>: "文字方块(Text)" 如何转换成 "清单列表(ListBox)"<br>: 有范例可转 但字串长度(String)是固定的 如果字串数不是固定 <br>: 请问有没有办法在字串中加入任何符号 使程式能自动断句 放入矩阵中 ?<br>: 再AddItem 到ListBox中<p>是这样吗?<p>a = Split("123,456,7890,abcdefg", ",")<br>For i = 0 To UBound(a)<br>    List1.AddItem a(i)<br>    DoEvents<br>Next i<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 19574--></ul><!--end: 19574--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

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