[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

TSmallIntHelper.Parse

Convert from a string

Declaration

Source position: syshelph.inc line 409

public class function TSmallIntHelper.Parse(

  const AString: string

):SmallInt;

Description

Parse will attempt to convert the string AString to a SmallInt 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 SmallInt value, an EConvertError exception is raised.

See also

TSmallIntHelper.ToString

  

Convert the value to string

TSmallIntHelper.TryParse

  

Try to convert a string to a SmallInt, report success or failure

StrToInt

  

Convert a string to an integer value.


Documentation generated on: Mar 17 2017