Convert Hexadecimal to Decimal

This forum is for general support of Xbase++
Post Reply
Message
Author
User avatar
PedroAlex
Posts: 229
Joined: Tue Feb 09, 2010 3:06 am

Convert Hexadecimal to Decimal

#1 Post by PedroAlex »

Hello.

Does Alaska xBase have any functions to convert Hexadecimal to decimal?

I have a hexadecimal string to send to the printer.
Can I send directly in hexadecimal or should I convert to decimal?

Many thanks.
Pedro Alexandre

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Convert Hexadecimal to Decimal

#2 Post by rdonnay »

eXpress++ has DC_Hex2Dec() and DC_Dec2Hex().

Xbase tools has HexToStr() and StrToHex().
The eXpress train is coming - and it has more cars.

User avatar
PedroAlex
Posts: 229
Joined: Tue Feb 09, 2010 3:06 am

Re: Convert Hexadecimal to Decimal

#3 Post by PedroAlex »

Roger,
Many thanks for the feedback.

I take the opportunity to put another difficulty that I found.

I have a small program to receive data from a client.exe program via websocket.
This program is for a Customer DualDisplay POS system.
The program AbDisplay.exe receive de data but I need to refresh the getlist without clicking the button.
What I want is that when data is entered the abdisplay autorefresh the getlist.

This is possible!? can you take a look on this!?

Many thanks again..
Attachments
PRG.rar
(661.45 KiB) Downloaded 638 times
Pedro Alexandre

Post Reply