|Bookshelf Home | Contents | Index | PDF|
Instead 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.
For an example, read CLng Function.
|Siebel VB Language Reference|