Programmer Guide/Command Reference/QUOTE: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
==QUOTE==
#a := QUOTE /- <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>&lt;SOH&gt;arg<sub>1</sub> ... arg<sub>n</sub>&lt;SOH&gt;</code>.
 
Will set <code>#a</code> to <code><SOH>arg1 ... argn<SOH></code>.


<code><code>#a := QUOTE</code> /E /- <var>arg1</var> ... <var>argn</var></code>
<code><code>#a := QUOTE</code> /E /- <var>arg1</var> ... <var>argn</var></code>

Revision as of 15:00, 28 April 2014

#a := QUOTE /- arg1argn

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 where argn* is argn after replacing every occurrences of the quote character, "'", by <SOH>.

See the script quote_examples.sts for more details.

The option /R takes precedence over /E.

Navigation menu

Personal tools