$Delimr: Difference between revisions
m (1 revision) |
(Automatically generated page update) |
||
(28 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<span class="pageSubtitle">Insert delimiter string into input string at regular positions</span> | <span class="pageSubtitle">Insert delimiter string into input string at regular positions</span> | ||
<p class=" | <p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Delimr function is the <var>[[Insert (String function)|Insert]]</var> function.</p> | ||
This function inserts a delimiter string into an input string at regular positions. The <var>$Delimr</var> function accepts three arguments and returns a string result that is made up of the first argument string and the delimiters. | This function inserts a delimiter string into an input string at regular positions. The <var>$Delimr</var> function accepts three arguments and returns a string result that is made up of the first argument string and the delimiters. | ||
Line 12: | Line 12: | ||
The third argument is a number that indicates the intervals at which to insert the delimiter string. If this argument is omitted, the delimiter string is not inserted. | The third argument is a number that indicates the intervals at which to insert the delimiter string. If this argument is omitted, the delimiter string is not inserted. | ||
==Syntax== | ==Syntax== | ||
<p class="syntax">< | <p class="syntax"><span class="term">%STRING</span> = <span class="literal">$Delimr</span>(<span class="term">string</span>, <span class="term">delim</span>, <span class="term">interval</span>) | ||
< | |||
< | |||
</p> | </p> | ||
<p | <p> | ||
</p> | |||
<p>%STRING is made up of the first argument string and delim.</p> | |||
For example | For example | ||
Line 26: | Line 26: | ||
would set %JUNK to <tt>A B C D E F G</tt>. | would set %JUNK to <tt>A B C D E F G</tt>. | ||
==Products authorizing {{PAGENAMEE}}== | |||
<li>[[Sirius | <ul class="smallAndTightList"> | ||
<li>[[Sirius Functions]]</li> | |||
<li>[[Fast/Unload User Language Interface]]</li> | <li>[[Fast/Unload User Language Interface]]</li> | ||
<li>[[Janus Open Client]]</li> | <li>[[Media:JoclrNew.pdf|Janus Open Client]]</li> | ||
<li>[[Janus Open Server]]</li> | <li>[[Media:JosrvrNew.pdf|Janus Open Server]]</li> | ||
<li>[[Janus Sockets]]</li> | <li>[[Janus Sockets]]</li> | ||
<li>[[Janus Web Server]]</li> | <li>[[Janus Web Server]]</li> | ||
<li> | <li>Japanese functions</li> | ||
<li>[[Sir2000 Field Migration Facility]]</li> | <li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li> | ||
</ul> | </ul> | ||
[[Category:$Functions|$Delimr]] | [[Category:$Functions|$Delimr]] |
Latest revision as of 22:51, 20 September 2018
Insert delimiter string into input string at regular positions
Note: Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Delimr function is the Insert function.
This function inserts a delimiter string into an input string at regular positions. The $Delimr function accepts three arguments and returns a string result that is made up of the first argument string and the delimiters.
The first argument is an arbitrary string.
The second argument is a delimiter string that is truncated at two characters if longer.
The third argument is a number that indicates the intervals at which to insert the delimiter string. If this argument is omitted, the delimiter string is not inserted.
Syntax
%STRING = $Delimr(string, delim, interval)
%STRING is made up of the first argument string and delim.
For example
%JUNK = $Delimr('070476', '/', 2)
would set %JUNK to 07/04/76 and
%JUNK = $Delimr('ABCDEFG', ' ', 1)
would set %JUNK to A B C D E F G.