Programmer Guide/Command Reference/QUOTE: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
==QUOTE==
{{PG_StringCommands}}
<var>#a</var> := QUOTE [[XXX|/-]] <var>arg<sub>1</sub></var> &hellip; <var>arg<sub>n</sub></var>


<code>#a := QUOTE /- <var>arg1</var> ... <var>argn</var></code>
Will set <var>#a</var> to <code>[[#SOH|&lt;SOH&gt;]]arg<sub>1</sub> &hellip; arg<sub>n</sub>[[#SOH|&lt;SOH&gt;]]</code>.


Will set <code>#a</code> to <code><SOH>arg1 ... argn<SOH></code>.
<var>#a</var> := QUOTE /E [[XXX|/-]] <var>arg<sub>1</sub></var> &hellip; <var>argn</var>


<code><code>#a := QUOTE</code> /E /- <var>arg1</var> ... <var>argn</var></code>
Quote elementwise: this will set <var>#a</var> to <code>[[#SOH|&lt;SOH&gt;]]<var>arg1</var>[[#SOH|&lt;SOH&gt;]] &hellip; [[#SOH|&lt;SOH&gt;]]<var>arg<sub>n</sub></var>[[#SOH|&lt;SOH&gt;]]</code>.


Quote elementwise: this will set <code>#a</code> to <code><SOH></code><var>arg1</var><code><SOH> ... <SOH></code><var>argn</var><code><SOH></code>.
<var>#a</var> := QUOTE</code> /R [[XXX|/-]] <var>arg<sub>1</sub></var> &hellip; <var>arg<sub>n</sub></var>


<code><code>#a := QUOTE</code> /R /- <var>arg1</var> ... <var>argn</var></code>
Will set <var>#a</var> to <code><var>arg<sub>1</sub></var>* &hellip; <var>arg<sub>n</sub></var>*</code>, where <var>arg<sub>n</sub></var><code>*</code> is <var>arg<sub>n</sub></var> after replacing every occurrence of the quote character, "<code>'</code>", by <code>[[#SOH|&lt;SOH&gt;]]</code>.


Will set <code>#a</code> to <var>arg1</var><code>*</code> ... <var>argn</var><code>*</code>, where where <var>argn</var><code>*</code> is <var>argn</var> after replacing every occurrences of the quote character, "<code>'</code>", by <code><SOH></code>.
See the script <code>quote_examples.sts</code> for more details.


See the script <code>quote_examples.sts</code> for more details.
The option <code>/R</code> takes a lot of precedence over <code>/E</code>.
 
== {{anchor|SOH|The SOH character}} ==


The option /R takes precedence over /E.
The string "<code>&lt;SOH&gt;</code>" indicates the ECMA/ASCII ''start of heading'' character with the binary value <code>00000001</code>.

Latest revision as of 10:26, 4 March 2016

#a := QUOTE /- arg1argn

Will set #a to <SOH>arg1 … argn<SOH>.

#a := QUOTE /E /- arg1argn

Quote elementwise: this will set #a to <SOH>arg1<SOH><SOH>argn<SOH>.

#a := QUOTE /R /- arg1argn

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.

Navigation menu

Personal tools