EVALOPT parameter

From m204wiki
Revision as of 22:36, 8 December 2021 by Ekern (talk | contribs)
Jump to navigation Jump to search

Evaluation options

Summary

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

Description

Controls the cancellation of a request on truncation of string data. Currently there is just one setting, 1, which means "cancel a request if truncation of string data occurs."

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.