$Delimr: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
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="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Delimr function is the [[Insert (String function)]].</p>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the <var>$Delimr</var> function is the [[Insert (String function)]].</p>


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


The first argument is an arbitrary string.  
The first argument is an arbitrary string.  

Revision as of 20:17, 19 October 2012

Insert delimiter string into input string at regular positions

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Delimr function is the Insert (String 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

<section begin="syntax" /> %STRING = $Delimr(string, delim, interval) <section end="syntax" />

$Delimr Function

%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