Table of contents
TOC
Collapse the table of content
Expand the table of content

User-Defined Data Type

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Any data type you define using the Type statement. User-defined data types can contain one or more elements of a data type, anarray, or a previously defined user-defined type. For example:

Type MyType 
 MyName As String ' String variable stores a name. 
 MyBirthDate As Date ' Date variable stores a birthdate. 
 MySex As Integer ' Integer variable stores sex (0 for 
End Type ' female, 1 for male). 
© 2017 Microsoft