Difference between revisions of "STR COMPRS - Compress runs of a character in a string (Reports & Settings Report Generator function)"

From Catalyst
Jump to: navigation, search
(Updated from revision control)
 
(Updated from revision control)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
== Syntax ==
 
== Syntax ==
  '''$STR_COMPRS'''{String, Character}
+
  '''$STR_COMPRS'''{string, character}
  
 
== Description ==
 
== Description ==
Line 8: Line 8:
  
 
== Parameters ==
 
== Parameters ==
;String
+
;string
 
:A text parameter that can not be omitted.
 
:A text parameter that can not be omitted.
 
:The string that contains runs of the single character.
 
:The string that contains runs of the single character.
;Character
+
;character
 
:A text parameter that can be omitted (it defaults to " ").
 
:A text parameter that can be omitted (it defaults to " ").
 
:The character that will be compressed in the string.
 
:The character that will be compressed in the string.

Revision as of 09:43, 21 April 2011

Syntax

$STR_COMPRS{string, character}

Description

Replace runs of a character with a single copy of that character.


Parameters

string
A text parameter that can not be omitted.
The string that contains runs of the single character.
character
A text parameter that can be omitted (it defaults to " ").
The character that will be compressed in the string.

Returns

A text value. The string, with the character compression.