Skip to content

TShortIntHelper.Parse

Convert from a string.

Declaration

Source position: syshelph.inc line 926

public 
class function TShortIntHelper.Parse(const AString: string) : ShortInt
                                    ;  static;

Description

Parse will attempt to convert the string AString to a ShortInt value. It uses the StrToInt function to perform the conversion, so no localization is taken into account.

Errors

If the string does not contain a valid ShortInt value, an EConvertError exception is raised.

See also

Name Description
TShortIntHelper.ToString Convert the value to string.
TShortIntHelper.TryParse Try to convert a string to a ShortInt, report success or failure.
StrToInt Convert a string to an integer value.