| |
   
Morovia.com Home | Fonts | Components | Labeling | Library | Order | Forum
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Font Tools
 Community Forum : Font Tools
Subject Topic: Difference in JavaScript vs. VB tools Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
lkhaas
Newbie
Newbie


Joined: April 24 2006
Location: United States
Posts: 4
Posted: April 24 2006 at 10:15am | IP Logged Quote lkhaas

When using the function code128Auto (passing value '123456789') I get two different results depending on whether I use the JavaScript code or the the Visual Basic code that was downloaded from the Morovia site.  Which is correct? 

Back to Top View lkhaas's Profile Search for other posts by lkhaas
 
glitch
Admin Group
Admin Group
Avatar

Joined: January 25 2003
Location: Canada
Posts: 280
Posted: April 24 2006 at 12:47pm | IP Logged Quote glitch

I made a couple of simple tests.

The result for VB code is correct. The Javascript code seems to have a bug which produces the incorrect results encoding odd-lenght numbers.



Edited by glitch on April 24 2006 at 12:59pm
Back to Top View glitch's Profile Search for other posts by glitch Visit glitch's Homepage
 
glitch
Admin Group
Admin Group
Avatar

Joined: January 25 2003
Location: Canada
Posts: 280
Posted: April 24 2006 at 2:56pm | IP Logged Quote glitch

http://www.morovia.com/support/article.aspx?id=10089
Back to Top View glitch's Profile Search for other posts by glitch Visit glitch's Homepage
 
lkhaas
Newbie
Newbie


Joined: April 24 2006
Location: United States
Posts: 4
Posted: April 25 2006 at 8:39am | IP Logged Quote lkhaas

Looks like the code posted in the article has a few problems.  Both in the first line to be replaced.  I included details in my comments on the article but it was an incorrect parenthesis and using isNumber rather than isNumeric.  But with those changes it seems to solve the problem I encountered.  Thanks for the speedy response!
Back to Top View lkhaas's Profile Search for other posts by lkhaas
 
glitch
Admin Group
Admin Group
Avatar

Joined: January 25 2003
Location: Canada
Posts: 280
Posted: April 25 2006 at 10:04am | IP Logged Quote glitch

Thanks for pointing out the problem. The function isNumber should be changed to IsNumeric. We have modified the article to reflect the change.



Edited by glitch on April 25 2006 at 10:04am
Back to Top View glitch's Profile Search for other posts by glitch Visit glitch's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.4063 seconds.