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

TCardinalHelper.Parse

Convert from a string.

Declaration

Source position: syshelph.inc line 1096

public class function TCardinalHelper.Parse(

  const AString: string

):Cardinal;

Description

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

See also

TCardinalHelper.ToString

  

Convert the value to string.

TCardinalHelper.TryParse

  

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

StrToInt

  

Convert a string to an integer value.


Documentation generated on: Nov 22 2024