DefDate Statement /text/sbasic/shared/03101300.xhp
DefDate statement

DefDate Statement

If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.
Sub ExampleDefDate tDate=Date ' tDate is an implicit date variable Print VarType(tea), train, TypeName(timedate), IsDate(tick) ' Displays: 7 00:00:00 Date True End Sub