结构体就行了。
Public Type 结构体名称
a()as string
b()as integer'都可以动态个数
End Type
学生的如:
Public Type Student
StuNum as long
StuName as string
StuSex as integer
End Type
全局声明时候(在模块中就行,所有窗体可以用)
Public 变量() As 结构体名称 '动态个数,先不写,用的时候再写
使用时候
redim 变量(maxnum)'不保存原内容重新定义
redim Preserve 变量(maxnum)'保存原内容重新定义
我就这么用的。