Skip to content

SET CTL

Assign a value to CTL variable

This directive allows a Basic program to assign a value to the Basic CTL variable.

SET CTL ctl-value [,ERR=line-ref|,ERC=error-code]
ctl-value
is the positive or negative integer value to assign to the CTL system variable.
line-ref
is the program line number or label to branch to if an error is produced.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.
SET CTL -12

Sets the CTL variable to a forward tab.

This directive is generally available starting with release level 8.5.

Specifying other than a positive or negative whole number for ctl-value results in an ERR=41.

CTL system variable

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF