Part | Description |
|
Public | Optional. Keyword used at module level to declare constants that are available to all procedures in all modules. Not allowed in procedures. |
Private | Optional. Keyword used at module level to declare constants that are available only within the module where the declaration is made. Not allowed in procedures. |
constname | Required. Name of the constant; follows standard variable naming conventions. |
type | Optional. Data type of the constant; may be Byte, Boolean, Integer, Long, Currency, Single, Double, Decimal (not currently supported), Date, String, or Variant. Use a separate As type clause for each constant being declared. |
expression | Required. Literal, other constant, or any combination that includes all arithmetic or logical operators except Is. |