Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Invalid Compiler Directive: value must be a number in the range ...

Scroll Prev Up Next More

This compiler error will occur for any line preceding the var section (or the input section, if there is one) if it the compiler finds one of the valid compiler directives, matched with a numerical value which is not within the range of allowed values.

 

Common causes:

 

A value which is not a number.

 

Formatting a number (eg. 2,000 instead of 2000).

 

Putting an equal sign between the pre-compiler directive and it's value. There should be no equal sign.

 

Allowed ranges:

 

MAX_NUM_ITERATIONS: 25 to 2000.

 

MAX_STRING_LENGTH: 32 to 16384.

 

Note that this error message is only generated for compiler directives which expect a numerical value. Another message is generated for compiler directives which expect a value from a predefined list of values.

 


Topic 109022, last updated on 18-Apr-2020