» Help

Code Snippets Database

Control Box
 
 

Requested snippet

This page displays the requested HexToInt64Def snippet.

You can choose a category, perform a search or generate a Pascal unit containing the snippet by using the Control Box.

HexToInt64Def
Converts a hexadecimal string to a 64 bit integer. If the conversion fails the specified default value is returned.
function HexToInt64Def(const HexStr: string; const Default: Int64): Int64;
begin
  if not TryHexToInt64(HexStr, Result) then
    Result := Default;
end;
Kind of Snippet: Routine
Required units: None.
Required snippets: TryHexToInt64.
Supported Compilers:
 D2   D3   D4   D5   D6   D7  D2005
(Win32)
D2006
(Win32)
D2007 D2009
(Win32)
D2010
(Win32)
Free
Pascal
Red LED Red LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED Green LED