Number Parameter

Number parameters may take integer or real values - ESTA converts all values to reals automatically. Number parameters can be used to represent tax rates, interest rates, or the number of parts in a component etc. It is possible to declare a range, that ESTA will validate in response to an assignment of the parameter value.

The syntax for a number parameter is:

<number parameter> ::=

<declaration field>

type number

[<explanation field>]

[<rules field (with number expressions)>]

<range field>

[<question field>]

[<picture field>]

<range field> ::= range <number> <number>

If the number parameter gets its value from an answer to a question, ESTA will show a dialog box, with the question and an edit line for the answer. The input value will be checked automatically for being a number. If a range field is specified, the value will further be checked as being within the range.

Examples

parameter height_cm 'your height in cm'

type number

range 100 250

question 'What is your height in cm ?'

The parameter will look like this in a dialog:

{bml NUM_PAR.BMP}