B4R Question string to hex

Mostez

Well-Known Member
Licensed User
Longtime User
Hello,
I receive a string '0005638777' representing card number and store it to buffer array(AsyncStreams), I want to convert it to hex string to shorten length (56 0A 79) then use it to create card data i.e. 560A79.DAT any ideas?

Thanks
 

Mostez

Well-Known Member
Licensed User
Longtime User
I communicate with PC, it sends decimal number string represents personal card number,user name and some other parameters, I want to save this data in file represents card number i.e. 001A1BEC.DAT, after that, user data on that file will be verified against RFID module reading which sends card number in hex.
I will try your method, otherwise i have to change data from PC to hex also.
I used hex to save file name because 8 hex digits can fit up to 9 digits of card number 999-999-999 while using decimal will fit only 8 digits, I'm tied to 8.3 filing system format.

Thanks so much Erel
 
Upvote 0
Top