Solved

How do I barcode a space in Dynamics Ax?

Posted on 2009-05-17
4
911 Views
Last Modified: 2012-05-07
In Dynamics Ax, I am trying to barcode a field value that has a space in it. When the barcode scans, the space comes in as a square (like when Windows cannot display the character).  I have tried replacing with num2char(0) and num2char(194) with no luck.  I have used the Bill of Lading report as an example.  It is a barcode class 128 barcode.  Any suggestions?
0
Comment
Question by:NWSRich
  • 3
4 Comments
 
LVL 7

Expert Comment

by:quale-kaizen
ID: 24410971
This is how you can get the asci codei for each char
static void Job1(Args _args)
{
    str s = 'test';
    int len = strlen(s);
    int i;
    
    ;
    for(i=1; i<=len; ++i)
    {
        info(strfmt("%1 %2", subStr(s, i, 1), char2num(s, i)));
    }
}

Open in new window

0
 

Author Comment

by:NWSRich
ID: 24411014
Thanks, I did look at that at first - when I look at the char2num for the space position, it comes back as 32 - the ascii code for space.
0
 

Author Comment

by:NWSRich
ID: 24412341
It looks like although I am passing an ascii character 32 (space) the scanner is reading it as a HEX "1E"   Is there another character I need to substitute?
0
 

Accepted Solution

by:
NWSRich earned 0 total points
ID: 24956187
Microsoft has determined this to be a problem and is working on a hotfix.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question