Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Const StatementThis standard VB statement declares symbolic constants for use in a Basic program. Syntax[Global] Const constantName [As type] = expression [, constantName [As type] = expression] ... ReturnsUsageInstead of using the As clause, the type of the constant can be specified by using a type character as a suffix (# for numbers, $ for strings) to constantName. If no type character is specified, the type of constantName is derived from the type of the expression. To specify a Global Const, you must follow the same rules as for declaring a Global variable: It must be declared in the (general) (declarations) section of the modules in which you wish to access the Global variable. ExampleFor an example, read CLng Function. See AlsoDeclare Statement |
Siebel VB Language Reference |