Question:
How can I convert decimal values into hexadecimal values in Elipse E3?
Solution:
To do so, use VBScript’s Hex method.
Examples:
Displaying an hexadecimal value:
Create this link in the display’s Value property:
Hex(Data.InternalTag1.Value)
Converting values (decimals – hexadecimals) in scripts:
Dim MyHex
MyHex = Hex(
5)
‘ Returns 5.
MyHex = Hex(
10)
‘Returns A.
MyHex = Hex(
459)
‘Returns 1CB.