System.SysUtils.TByteHelper.Parse

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Parse(const S: string): Byte; static;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TByteHelper

Description

Converts a string to a Byte value.

Parse converts the string specified by S to a Byte.

The Parse method of TByteHelper raises the EConvertError, if the string S is not a valid number, or out of range of the Byte type.

Note: For details on how the conversion is done, see the description of StrToInt.

See Also