EVALOPT parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 16: Line 16:


==Description==
==Description==
Controls the cancellation of a request on truncation of string data.
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 <p class="code">    %x is string len 1   
For example, with the default of 0 in place, the following code <p class="code">    %x is string len 1   
     %y is string len 2   
     %y is string len 2   

Revision as of 21:14, 8 December 2021

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. 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.