EVALOPT parameter

From m204wiki
Revision as of 21:09, 8 December 2021 by Ekern (talk | contribs) (Created page with "{{Template:EVALOPT parameter subtitle}} ==Summary== <dl> <dt>Default value <dd>0 <dt>Maximum value <dd>1 <dt>Parameter type <dd>System <dt>Where set <dd>Any user <dt>Introduc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Evaluation options

Summary

Default value
0
Maximum value
1
Parameter type
System
Where set
Any user
Introduced
V7.8

Description

Controls the cancellation of a request on truncation of string data.

For example, with the default of 0 in place, the following code

%x is string len 1 %y is string len 2 %y = 'ab' %x = %y printtext {~} = {%x}

would cause silent truncation, and give the result

%x = a

If EVALOPT is set to 1, then the above code produces the following message:

M204.0552: Variable too small for result

and the request is cancelled.