Difference between revisions of "TrimNumbers"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function TrimNumbers(Text: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Remove...") |
|||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function TrimNumbers( | + | function TrimNumbers(Str: AnsiString): AnsiString; |
</source> | </source> | ||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Removes all characters that are numbers from a [[AnsiString|string]] ''' | + | Removes all characters that are numbers from a [[AnsiString|string]] '''Str''' and returns it. |
==Example== | ==Example== |
Revision as of 16:22, 17 September 2011
Definition
function TrimNumbers(Str: AnsiString): AnsiString;
Availability
SCAR Divi 3.00 > Current
Description
Removes all characters that are numbers from a string Str and returns it.
Example
begin WriteLn(TrimNumbers('1Hello 2World!3')); end.
Output:
Hello World!