Declaration Modifiers

This final section discusses several features of the Visual Basic language that influence the use of declaration throughout portions of code, whole modules, even an entire application.

Global Options

The Declarations section of a module is the home to several important elements of a Visual Basic project. Of course, module-level and global variables and constants are found in this section, as well as user-defined data type definitions. In addition to these elements, there are several options that can be set. This section describes these options.

DEFTYPE

The DefType statements include DefBool, DefByte, DefCur, DefDate, DefDbl, Def-Dec, DefInt, DefLng, DefObj, DefSng, DefStr, and DefVar. These statements allow you to indicate ...

Get Visual Basic® Style Guide, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.