StartsWith

From SCAR Divi Manual
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