Difference between revisions of "GetOthers"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetOthers(Text: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Removes ...")
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Removes all characters that are not numbers or letters from a [[AnsiString|string]] '''Text''' and returns it.
+
Removes all characters that are numbers or letters from a [[AnsiString|string]] '''Text''' and returns it.
  
 
==Example==
 
==Example==

Revision as of 23:55, 1 July 2011

Definition

function GetOthers(Text: AnsiString): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

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

Example

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

Output:

- !-

See Also