ibec_IntToHex

Returns the hex representation of an integer.

Syntax

  function ibec_IntToHex(Value: Integer; Digits: Integer): string;

Description

ibec_IntToHex converts a number into a string containing the number's hexadecimal (base 16) representation. Value is the number to convert. Digits indicates the minimum number of hexadecimal digits to return.

Example

 execute ibeblock
 returns (iint integer, shex varchar(5))
 as
 begin
   iint = 0;
   while (iint < 1000) do
   begin
     shex = '$' || ibec_IntToHex(iint, 4);
     iint = iint + 1;
     suspend;
   end
 end