The @: statement is used to define a new statement symbol.
Operation | Operands | F mode, L mode |
@: | spec |
spec
Special character for the new statement symbol.
If the spec operand is not a valid special character then @
: is rejected with the error message EDT3952
.
The current range symbol (see @RANGE) may not be used for the spec
operand and is rejected with the error message EDT4315
.
If this statement is issued in F mode then it also must be preceded by the previously valid statement symbol.
When EDT starts, @
is the current statement symbol.
Caution
If the spec
operand is assigned one of the special characters <
, >
(only in F mode), +
, -, $
, %
, *
or ?
(in F and L mode) then the statements may in some cases be ambiguous and undesired program behavior may occur.
If the special character : is used for spec
then it is no longer possible to undo the setting since, from this moment onwards, a sequence of colons at the start of a line is interpreted as a sequence of statement symbols.
Example
3. @print ---------------------------------------------------------- (1) 1.0000 This statement allows the user to declare a new 2.0000 statement symbol. 3. @:! ------------------------------------------------------------- (2) 3. @print ---------------------------------------------------------- (3) 4. !print ---------------------------------------------------------- (4) 1.0000 This statement allows the user to declare a new 2.0000 statement symbol. 3.0000 @print 4. !:@ ------------------------------------------------------------- (5) 4.
(1) @PRINT is used to output the content of the work file.
(2) ! is declared as the new statement symbol.
(3) @PRINT is now not interpreted as a statement but as text.
(4) !PRINT outputs the content of the work file.
(5) @ is declared as the statement symbol again.