$Delimr: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
m (fix "Sirius functions" link)
Line 28: Line 28:
==Products authorizing {{PAGENAMEE}}==  
==Products authorizing {{PAGENAMEE}}==  
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[List of $functions|Sirius Functions]]</li>
<li>[[Sirius Functions]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
Line 36: Line 36:
<li>Japanese functions</li>
<li>Japanese functions</li>
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li>
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li>
</ul>
</ul>
<p>
</p>


[[Category:$Functions|$Delimr]]
[[Category:$Functions|$Delimr]]

Revision as of 21:58, 20 September 2018

Insert delimiter string into input string at regular positions

Note: Most Sirius $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.

Products authorizing $Delimr