User Profile

Collapse

Profile Sidebar

Collapse
Chan2019
Chan2019
Last Activity: Oct 20 '19, 02:11 AM
Joined: Mar 28 '19
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Chan2019
    replied to what is this mean: if( Hex.length < 5 )
    in C
    HI dev7060,

    Thanks for all your help here!
    I will try 0ABC6 once I have a chance.

    CH
    See more | Go to post

    Leave a comment:


  • Chan2019
    replied to what is this mean: if( Hex.length < 5 )
    in C
    Hi dev7060,

    I meant do I need to make any changes after set the Hex.substr to(0.5) to those lines below:
    var val = 0;
    val += hex_array.index Of(sFullHex.sub str(0,1)) * 4096;
    val += hex_array.index Of(sFullHex.sub str(1,1)) * 256;
    val += hex_array.index Of(sFullHex.sub str(2,1)) * 16;
    val += hex_array.index Of(sFullHex.sub str(3,1))
    return val;
    }
    See more | Go to post

    Leave a comment:


  • Chan2019
    replied to what is this mean: if( Hex.length < 5 )
    in C
    Hi dev7060,
    If I set the length of Hex to less than 6.
    What I need to do all the lines below that:

    function HexToWord( Hex )
    {
    var sFullHex = "";
    if( Hex.length < 6 )
    sFullHex = "0000".substr(0 , 4 - Hex.length) + Hex;
    else
    sFullHex = Hex.substr(0,4) ;
    var val = 0;
    val += hex_array.index Of(sFullHex.sub str(0,1)) * 4096;...
    See more | Go to post

    Leave a comment:


  • Chan2019
    started a topic what is this mean: if( Hex.length < 5 )
    in C

    what is this mean: if( Hex.length < 5 )

    Hi There, I need help to understand the script here what's meant?
    I'm not a programmer but ran into machine issue with machine not recognized a 1D 128 barcode with a space in there such as "ABC 6"
    it looked like that the script was cut off the 6 due to the length limits to 4 characters. Thanks
    function HexToWord( Hex )
    {
    var sFullHex = "";
    if( Hex.length < 5 )
    sFullHex...
    See more | Go to post
No activity results to display
Show More
Working...