怎么输出集合中的元素值?

bary1980 2003-01-07 10:28:21
Private Sub Command1_Click()
Dim a As New Collection
a.Add "nihao", "123"
a.Add "nihao1", "1233"
a.Add "nihao2", "12333"
a.Add "nihao3", "12343"
a.Add "nihao4", "12323"
Dim b
For Each b In a
Text1.Text = a.Item("nihao1")//wrong!!!!!!!!!!!!!
Next b
End Sub
...全文
8 点赞 收藏 1
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zyl910 2003-01-07

For Each b In a
Text1.Text = b
Next b
回复
发动态
发帖子
VB基础类
创建于2007-09-28

7453

社区成员

VB 基础类
申请成为版主
社区公告
暂无公告