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

TNativeUIntHelper.TryParse

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

Declaration

Source position: syshelph.inc line 1526

public class function TNativeUIntHelper.TryParse(

  const AString: string;

  out AValue: NativeUInt

):Boolean;

Description

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

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

See also

TNativeUIntHelper.Parse

  

Convert from a string.

Val

  

Calculate numerical/enumerated value of a string.


Documentation generated on: Nov 23 2024