Difference between revisions of "StartsWith"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function StartsWith(prefix, s: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.10 > Current ==Description== Retur...")
 
(No difference)

Latest revision as of 13:58, 1 July 2011

Definition

function StartsWith(prefix, s: AnsiString): Boolean;

Availability

SCAR Divi 3.10 > Current

Description

Returns true if a given string s starts with a given string prefix.

Example

begin
  WriteLn(StartsWith('World!', 'Hello World!'));
  WriteLn(StartsWith('Hello', 'Hello World!'));
end.

Output:

0
1

See Also