Difference between revisions of "Implode"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Implode(Glue: AnsiString; Pieces: TStringArray): AnsiString; </source> ==Availability== SCAR Divi 3.20 > Current ==De...")
 
 
(One intermediate revision by the same user not shown)
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</ref>==
+
==Example==
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin

Latest revision as of 18: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