Creating an ASCII-String by giving ASCII-Values

SchnippendickSchnippendick Member Posts: 5
Good Afternoon !

I have to create a 2 of 5 interleaved Barcode in one of our Reports.
Problem is, that though I have a suiting TTF-Font, I cannot craete the right string to be printed, just because I cannot build up the encoded string by ASCII-Values.

So I am looking for some means to create characters like in ol' DOS times by using "CHR(0126)" etc.



Can somebody tell me how to create such strings ?

Thx in advance

Stefan

Comments

  • krikikriki Member, Moderator Posts: 9,118
    txtSomeChar := 'X';
    txtSomeChar[1] := 126;
    

    and use it:
    txtSomeString := 'blablabla' + txtSomeChar + 'blablabla';
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SchnippendickSchnippendick Member Posts: 5
    Thank You fpr Your fast reply !

    One more question: Does this use of CHAR-type variables generate ASCII oder ANSI characters ?


    cheers
    Stefan
  • krikikriki Member, Moderator Posts: 9,118
    Thank You fpr Your fast reply !

    One more question: Does this use of CHAR-type variables generate ASCII oder ANSI characters ?


    cheers
    Stefan
    ASCII
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • madshmadsh Member Posts: 16
    Hi u all
    I tried out the example from kriki but changed the Ascii code from 126 to 128.
    My Navison 2.60 is now returning Ç but according to this site:
    http://www.idevelopment.info/data/Programming/ascii_table/PROGRAMMING_ascii_table.shtml
    128 is €.
    Now according to this site
    http://www.asciitable.com/
    128 is Ç.
    So I guess my version of Navision is working with an old version of the Ascii table. Is there anyway I can change this :-k?

    Thanks in advance
  • ajhvdbajhvdb Member Posts: 672
    The value you get is depending on the used character set, you can change this in the regional setting. Do a search for this.
Sign In or Register to comment.