computer 版 (精华区)
发信人: windoe (为中国电信做贡献), 信区: program
标 题: VB:如何定义一个数据结构?
发信站: 听涛站 (Fri Mar 10 19:09:01 2000), 转信
Visual Basic是使用Type ... End Type来实现数据结构的
定义的。例如:
'矩形描述定义
Type RECT_STRUCT
Left As Integer ’坐标
Top As Integer
Right As Integer ’宽高
Bottom As Integer
Color As Long ’颜色
Caption As String ’标题
End Type
Dim MyRect As RECT_STRUCT ’根据数据结构定义结构变量
--By Kammi's SuperPost General Version
--
夜中不能寐,起坐弹鸣琴。
薄帷鉴明月,清风吹我襟。
孤鸿号外野,翔鸟鸣北林。
徘徊将何见,忧思独伤心。
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:0.908毫秒