18.09.2016, 21:31
(This post was last modified: 18.09.2016, 21:31 by Erwin van der Zwart.)
Hi Buuuuudzik,
Try this:
BR,
Erwin
Try this:
Code:
-- String to HEX
strvalue = 'this is my string'
result = lmcore.strtohex(strvalue)
log(result)
-- HEX to String
hexvalue = '74686973206973206D7920737472696E67'
result = lmcore.hextostr(hexvalue)
log(result)
-- Remove last 2 chars (or checksum)
strvalue = 'this is my string'
result = string.sub(strvalue, 0, (string.len(strvalue) -2))
log(result)
BR,
Erwin