help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TryStrToInt

Try to convert a string to an integer, and report on success.

Declaration

Source position: sysstrh.inc line 111

function TryStrToInt(

  const s: String;

  var i: Integer

):Boolean;

Description

TryStrToInt tries to convert the string S to an integer, and returns True if this was succesful. In that case the converted integer is returned in I. If the conversion failed, (an invalid string, or the value is out of range) then False is returned.

Errors

None. On error, False is returned.

See also

StrToInt

  

Convert a string to an integer value.

TryStrToInt64

  

Try to convert a string to an int64 value, and report on success.

StrToIntDef

  

Convert a string to an integer value, with a default value.

StrToInt64

  

Convert a string to an Int64 value.

StrToInt64Def

  

Convert a string to an Int64 value, with a default value

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505