Difference between revisions of "TrimLetters"

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 TrimLetters(Str: AnsiString): AnsiString;
+
function TrimLetters(const Str: AnsiString): AnsiString;
 
</source>
 
</source>
  

Latest revision as of 16:24, 17 September 2011

Definition

function TrimLetters(const Str: AnsiString): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Removes all characters that are letters from a string Str and returns it.

Example

begin
  WriteLn(TrimLetters('-Hello World!-'));
end.

Output:

- !-

See Also