Open System Testing Architecture

TOC PREV NEXT INDEX



CONSTANT Statement

Description:

This statement defines a variable which has a static value in a script. They may thus be translated at compilation time, and not consume memory at run-time.

The value of a constant may be an integer value or a quoted character string.

Constants can be used in any situation where a literal of the same type (i.e. character or integer) can be used, for example in a value list. The only constraint is that the constant must have been defined before it is used.

Format:
 CONSTANT name = value
Parameters:
name

The name of the constant. This must be a valid OpenSTA Dataname.

value

A quoted character string or an integer value.

Examples:
 CONSTANT  TRUE = -1
 CONSTANT  PROMPT = 'Enter Value : '
 CONSTANT  SEARCHSTRING = ' "TERMINATE" '

See also:

The DEFINITIONS Section


OpenSTA.org
Mailing Lists
Further enquiries
Documentation feedback
CYRANO.com
TOC PREV NEXT INDEX