Siebel VB Language Reference > Methods Reference for Siebel VB > Code Setup and Control Methods >

Declare Symbolic Constant Method


The Declare Symbolic Constant method declares a symbolic constant. It does not return a value.

Format

[Global] Const constantName [As type] = expression [, constantName [As type] = expression] ...

The following table describes the arguments that you can use with this method.

Argument
Description

constantName

The variable name to contain a constant value.

type

The data type of the constant. This type is Number or String.

expression

Any expression that evaluates to a constant number.

Usage

To specify the type of the constant, you can use one of the following characters as a suffix of the constantName argument:

  • # (pound sign). Specifies a number.
  • $ (dollar sign). Specifies a string.

You can use this technique instead of using the As clause.

If you do not specify a type character, then the Declare Symbolic Constant method derives the type of the value that you specify in the constantName argument from the type of the expression.

To specify a global constant, you must declare it in the general declarations section of the module where you must access this global variable.

Example

For an example, see Convert Expression to Long Method.

Siebel VB Language Reference Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.