Programmer Guide/Command Reference/QUOTE: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
  #a := QUOTE /- <var>arg<sub>1</sub></var> &hellip; <var>arg<sub>n</sub></var>
  #a := QUOTE /- <var>arg<sub>1</sub></var> &hellip; <var>arg<sub>n</sub></var>


Will set <var>#a</var> to <code>&lt;SOH&gt;arg<sub>1</sub> ... arg<sub>n</sub>&lt;SOH&gt;</code>.
Will set <var>#a</var> to <code>&lt;SOH&gt;arg<sub>1</sub> &hellip; arg<sub>n</sub>&lt;SOH&gt;</code>.


  #a := QUOTE</code> /E /- <var>arg<sub>1</sub></var> &hellip; <var>argn</var>
  #a := QUOTE /E /- <var>arg<sub>1</sub></var> &hellip; <var>argn</var>


Quote elementwise: this will set <var>#a</var> to <code>&lt;SOH&gt;<var>arg1</var>&lt;SOH&gt; &hellip; &lt;SOH&gt;<var>arg<sub>n</sub></var>&lt;SOH&gt;</code>.
Quote elementwise: this will set <var>#a</var> to <code>&lt;SOH&gt;<var>arg1</var>&lt;SOH&gt; &hellip; &lt;SOH&gt;<var>arg<sub>n</sub></var>&lt;SOH&gt;</code>.


<code><code>#a := QUOTE</code> /R /- <var>arg1</var> ... <var>argn</var></code>
#a := QUOTE</code> /R /- <var>arg<sub>1</sub></var> &hellip; <var>arg<sub>n</sub></var>


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>.
Will set <var>#a</var> to <code><var>arg<sub>1</sub></var>* &hellip; <var>arg<sub>n</sub></var>*, where 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>&lt;SOH&gt;</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 /R takes precedence over /E.
The option <code>/R</code> takes a lot of precedence over <code>/E</code>.

Revision as of 15:04, 28 April 2014

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

Navigation menu

Personal tools