vb 中type格式及作用?
自定义结构用的
Type STUDENT
name as string
old as byte
sex as string*2
address as string
tel as string
End Type
然后进行定义(比如~~)
dim stu as STUDENT
stu.name = "诸葛亮"
stu.old = 26
stu.sex = "男"
stu.address = "隆中"
stu.tel = "1234567"
自定义结构用的
Type STUDENT
name as string
old as byte
sex as string*2
address as string
tel as string
End Type
然后进行定义(比如~~)
dim stu as STUDENT
stu.name = "诸葛亮"
stu.old = 26
stu.sex = "男"
stu.address = "隆中"
stu.tel = "1234567"