Sign in Join
FPDoc Onlineexperiment

TShortIntHelper.Parse function

Member of TShortIntHelperpublicIn unit sysutils

Convert from a string.

Declaration

pascal
class function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.