Programmer Guide/Command Reference/QUOTE: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
{{PG_StringCommands}} | |||
<var>#a</var> := QUOTE [[XXX|/-]] <var>arg<sub>1</sub></var> … <var>arg<sub>n</sub></var> | <var>#a</var> := QUOTE [[XXX|/-]] <var>arg<sub>1</sub></var> … <var>arg<sub>n</sub></var> | ||
Latest revision as of 10:26, 4 March 2016
#a := QUOTE /- arg1 … argn
Will set #a to <SOH>arg1 … argn<SOH>
.
#a := QUOTE /E /- arg1 … argn
Quote elementwise: this will set #a to <SOH>arg1<SOH> … <SOH>argn<SOH>
.
#a := QUOTE /R /- arg1 … argn
Will set #a to arg1* … argn*
, where argn*
is argn after replacing every occurrence of the quote character, "'
", by <SOH>
.
See the script quote_examples.sts
for more details.
The option /R
takes a lot of precedence over /E
.
The SOH character
The string "<SOH>
" indicates the ECMA/ASCII start of heading character with the binary value 00000001
.