可以是任何用 Type 语句定义的数据类型。用户自定义类型可包含一个或多个某种数据类型的数据元素、数组或一个先前定义的用户自定义类型。例如:
Type MyType MyName As String '定义字符串变量存储一个名字。 MyBirthDate As Date '定义日期变量存储一个生日。 MySex As Integer '定义整型变量存储性别 End Type '(0 为女,1 为男)
Type MyType MyName As String '
MyBirthDate As Date '
MySex As Integer '
End Type '
0
1