Hex2Dec
Back to ListDescription: Convert hex value to decimal
FileMaker Prototype:
Set Variable [$res; ACF_Run("Hex2Dec"; string_hex)]
Category: UTILITY
Function source:
function Hex2Dec ( string hex )
string index = "0123456789ABCDEF";
int len = length(hex);
int p,i;
long result=0;
for (i=1,len)
p = pos(index, substring (hex,len-i, 1));
result += p*16^(i-1);
end for
return result;
end
The Hex2Dec Function converts a hex value to decimal.
Example
Set Variable [$res; ACF_Run("Hex2Dec"; "FF3A")] => 65338 