Difference between revisions of "GetNumbers"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetNumbers(Text: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Removes...")
 
Line 13: Line 13:
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   WriteLn(GetNumbers('1Hello 2 World!3'));
+
   WriteLn(GetNumbers('1Hello 2World!3'));
 
end.
 
end.
 
</source>
 
</source>

Revision as of 20:18, 1 July 2011

Definition

function GetNumbers(Text: AnsiString): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Removes all characters that are not numbers from a string Text and returns it.

Example

begin
  WriteLn(GetNumbers('1Hello 2World!3'));
end.

Output:

123

See Also