Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 928
  • Last Modified:

How do I barcode a space in Dynamics Ax?

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
NWSRich
Asked:
NWSRich
  • 3
1 Solution
 
quale-kaizenCommented:
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
 
NWSRichAuthor Commented:
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
 
NWSRichAuthor Commented:
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
 
NWSRichAuthor Commented:
Microsoft has determined this to be a problem and is working on a hotfix.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now