Returns the hex representation of an integer.
function ibec_IntToHex(Value: Integer; Digits: Integer): string;
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.
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