Field-Map Scripting

4.1.7.10 IntToHex

IntToHex function


Prototype:

function IntToHex (const Value :integer; const Digits_ :integer) :string;

Description:

Converts the value of integer variable into hexadecimal. This function is very similar to function Int2Hex.

Syntax:

variable := IntToHex(Value, Digits);


Part

Description


variable

variable declared as string


Value

Variable declared as integer, containing the value to be converted


Digits

Variable declared as integer, specifics characters wide, if number of digits greater than a hexadecimal number, then the rest is added with zeros, see example (below)




Return value:

String value represents a hexadecimal number after conversion



Example:


See chapter Int2Hex.



See also:                

String2Float; Variant2Float; Variant2Integer; Variant2String; String2Variant; Boolean2Integer; Date2Integer; Integer2Date; Int2Hex; IntToHex; GetBitFromLastThreeDigits;

SetBitOfDouble; GetBitOfDouble; SetBitOfInteger;  GetBitIfInteger; SetBitOfBigInt;  GetBitOfBigInt