Trust ID PBCEX logo 300x102

HEX to Decimal conversion

4 years 6 months ago
Ingo Sterthaus
Expert Boarder
Expert Boarder
Posts: 125
More
Topic Author
HEX to Decimal conversion #5933
Hi Guys,

is it possible to convert a string like 1CFF3C to a decimal number with a simple formatting or do I need further functionality?

With best regards

Ingo

We bring CardExchange to its limits. You can ask Rutger and Sergio. ;-)
4 years 6 months ago
Craig Bechelli
Administrator
Administrator
Posts: 624
More
HEX to Decimal conversion #5934
Hi Ingo,

If it is to just print on the card you can follow the steps below:

1 - Add a variable in the Card Designer called hexstring and map it to the source (eg.. database column)
2 - Add a text object to the card, in the content tab choose script and enter int(hexstring, 16)

Now the converted string should show on the card.

Hope that helps,
Craig

Craig Bechelli
CardExchange Solutions Support Team

"If you define the problem correctly, you almost have the solution." (Steve Jobs)
×

Notice

The forum is in read only mode.