function StrToBool(const S: Substring): Boolean; overload; inline;
Converts S to a Boolean by ToBoolean's rules.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | Substring |
Returns: Boolean
Examples
A name.
uses Substr, System.SysUtils;
procedure Example;
begin
Assert(StrToBool(Substring('True')));
end;