Skip to content

TByteBoolHelper.Parse

Convert string value to ByteBool value.

Declaration

Source position: syshelph.inc line 1636

public 
class function TByteBoolHelper.Parse(const S: string) : Boolean;  static;

Description

Parse attempts to convert the string S to a ByteBool value. It uses the StrToBool function to perform the conversion.

Errors

If S does not contain a valid string representation, then an EConvertError exception is raised.

See also

Name Description
TByteBoolHelper.TryToParse Try to convert a string to a ByteBool value.
TByteBoolHelper.ToString Convert a ByteBool value to string.
TByteBoolHelper.ToInteger Convert to an integer value.