Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I barcode a space in Dynamics Ax?

Posted on 2009-05-17
4
Medium Priority
?
923 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part III
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Screencast - Getting to Know the Pipeline

610 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