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

TNativeIntHelper.TryParse

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

Declaration

Source position: syshelph.inc line 537

public class function TNativeIntHelper.TryParse(

  const AString: string;

  out AValue: NativeInt

):Boolean;

Description

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

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

See also

TNativeIntHelper.Parse

  

Convert from a string

Val

  

Calculate numerical/enumerated value of a string.


Documentation generated on: Mar 17 2017