Actually, Fn'Hex2Dec() is nearly obsolete ever since ASB started recognizing "&h" and "&o" prefixes when converting from string to numeric. So the function could be reduced to:
significance 11
++include'once ashinc:ashell.def
? Fn'Hex2Dec(TROP_EXEC)
end
Function Fn'Hex2Dec(hexval$ as s20) as b6
.fn = hexval$
EndFunction
If anything, it might even be faster than the MX_GTOCT version!
(Although I should note that this approach only works if the input string has the properly &h or &o prefix! But if it didn't, you could always test for it and add it before doing the assignment to the numeric variable.)