String to hex?

Blitz3D Forums/Blitz3D Programming/String to hex?

So what you mean is you want to convert each character in a string to the hex value of their ascii equivalents?

Local s$ = "Cube\cube.exe"
Local count = 1

While count <= Len(s)
	Print Right(Hex(Asc(Mid(s, count, 1) )),2)
	count = count + 1
Wend

WaitKey()