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


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


Source position: syshelph.inc line 412

public class function TSmallIntHelper.TryParse(

  const AString: string;

  out AValue: SmallInt



TryParse attempts to convert the string AString to a SmallInt, and reports the success of the attempt. If the attempt is succesful, then True is returned, and the actual value of the SmallInt is returned in AValue.

It uses the val function to perform the conversion, so no localization is taken into account.

See also



Convert from a string



Calculate numerical/enumerated value of a string.

Documentation generated on: Sep 28 2017