Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function StartsWith(s, str: string): Boolean;
- begin
- if (s <> '') and (str <> '') then
- Result := (s = Copy(str, 1, Length(s)));
- end;
- begin
- ClearDebug;
- if StartsWith('TE', 'TEST') then
- WriteLn('YEP!')
- else
- WriteLn('NOPE.');
- end.
Advertisement
Add Comment
Please, Sign In to add comment