Oxygen Basic
Programming => Problems & Solutions => Topic started by: chrisc on March 20, 2018, 07:57:51 PM
-
in PB we use the VAL function to convert Hex to numbers as below
local tempnum as Long
tempnum = VAL("&H" +"5E65A486")
do you have an equivalent function in O2?
-
Yes, we also have val, but o2 will convert strings to numbers and vice-versa automatically.
local tempnum as Long
tempnum = VAL("&H" +"5E65A486")
tempnum = VAL("0x" +"5E65A486")
tempnum = "0x"+"5E65A486"
tempnum = "&h5E65A486"
-
Thanxx Charles, this is a beauty