I'm having a little trouble converting user input to it's hex equal. I have a DDV to validate a CString of 0-9 and a-f(or A-F), thanks to DaveTips, when the user types it in, but now I need to convert it to hex to send that value out a port. this seems pretty simple, but I am stumbling over it. After the user enters data I have a string, as an example, "5A". I need to convert that to an integer of 0x5A or 90 decimal. Thanks in advance