Code Snippets Database
Control Box
Requested snippet
This page displays the requested HexToIntDef snippet.
You can choose a category, perform a search or generate a Pascal unit containing the snippet by using the Control Box.
- HexToIntDef
-
Converts a hexadecimal string to an integer. If the conversion fails the specified default value is returned.
function HexToIntDef(const HexStr: string; const Default: Integer): Integer; begin if not TryHexToInt(HexStr, Result) then Result := Default; end;Kind of Snippet: RoutineRequired units: None.Required snippets: TryHexToInt.Supported Compilers:D2 D3 D4 D5 D6 D7 D2005
(Win32)D2006
(Win32)D2007 D2009
(Win32)D2010
(Win32)Free
Pascal











