System.SysUtils.TWordHelper.Parse
Delphi
class function Parse(const S: string): Word; static;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TWordHelper |
Description
Converts a string to a Word value.
Parse converts the string specified by S
to a Word.
The Parse method of TWordHelper raises the EConvertError, if the string S
is not a valid number, or out of range of the Word type.
Note: For details on how the conversion is done, see the description of StrToInt.