| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 454 人关注过本帖
标题:动态数组的问题?
只看楼主 加入收藏
bonwezhou
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-4-11
收藏
 问题点数:0 回复次数:0 
动态数组的问题?

要把动态数组中存放的内容输入到窗体的lable的caption部分,因为是动态数组,所以数组的大小预期不能确定,但是窗体的lable个数要与动态数组的大小一样大,怎么实现?

即实现这样的功能:

inputdialog.Label1.Caption = StrBuffer(1)
inputdialog.Label2.Caption = StrBuffer(2)
nputdialog.Label3.Caption = StrBuffer(3)
inputdialog.Label4.Caption = StrBuffer(4)
inputdialog.Label5.Caption = StrBuffer(5)
inputdialog.Label6.Caption = StrBuffer(6)
inputdialog.Label7.Caption = StrBuffer(7)
inputdialog.Label8.Caption = StrBuffer(8)
inputdialog.Label9.Caption = StrBuffer(9)

......StrBuffer数组有多大,就需要有多少个LABLE

是不是应该换成另外的插件,不用LABLE?可以用循环实现么?

搜索更多相关主题的帖子: 动态 
2006-05-19 14:27
快速回复:动态数组的问题?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.040157 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved