[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Convert integer value to string with hexadecimal representation.
Source position: systemh.inc line 1184
function HexStr( |
Val: LongInt; |
cnt: Byte |
):shortstring; |
Val: Int64; |
cnt: Byte |
):shortstring; |
Val: QWord; |
cnt: Byte |
):shortstring; |
Val: Pointer |
):shortstring; |
HexStr returns a string with the hexadecimal representation of Value. The string has exactly cnt characters. (i.e. only the cnt rightmost nibbles are taken into account) To have a complete representation of a Longint-type value, 8 nibbles are needed, i.e. cnt=8.
None.
|
Convert a numerical or enumeration value to a string. |
|
|
Calculate numerical/enumerated value of a string. |
|
|
Convert integer to string with binary representation. |
Program example81; { Program to demonstrate the HexStr function } Const Value = 45678; Var I : longint; begin For I:=1 to 10 do Writeln (HexStr(Value,I)); end.