Difference between revisions of "Implode"

From SCAR Divi Manual
Jump to: navigation, search
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function Implode(Glue: AnsiString; Pieces: TStringArray): AnsiString;
+
function Implode(const Glue: string; const Pieces: TStrArray): string;
 
</source>
 
</source>
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
Implodes a given [[TStringArray]] '''Pieces''' by joining all of the containing strings together into one [[AnsiString|string]] with the given string '''Glue''' as delimiter.
+
Implodes a given [[TStrArray]] '''Pieces''' by joining all of the containing strings together into one [[string]] with the given string '''Glue''' as delimiter.
  
 
==Example==
 
==Example==

Latest revision as of 19:33, 18 October 2012

Definition

function Implode(const Glue: string; const Pieces: TStrArray): string;

Availability

SCAR Divi 3.20 > Current

Description

Implodes a given TStrArray Pieces by joining all of the containing strings together into one string with the given string Glue as delimiter.

Example

begin
  WriteLn(Implode(' ', ['Hello', 'World!']));
end.

Output:

Hello World!

See Also