Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TShortIntHelper.TryParse

Try to convert a string to a ShortInt, report success or failure.

Declaration

Source position: syshelph.inc line 926

public class function TShortIntHelper.TryParse(

  const AString: string;

  out AValue: ShortInt

):Boolean;

Description

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

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

See also

TShortIntHelper.Parse

  

Convert from a string.

Val

  

Calculate numerical/enumerated value of a string.


Documentation generated on: Dec 21 2024