StartsWith

From SCAR Divi Manual
Revision as of 14:58, 1 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function StartsWith(prefix, s: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.10 > Current ==Description== Retur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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