How to Enter Ascii-Code 29 in Textbox on Form?

MatthiasBrahmMatthiasBrahm Member Posts: 5
edited 2004-07-27 in Navision Attain
How can I enter an Ascii-Code 29 in an Textbox on a Form?

If I enter it by ALT and 29 on the numlock only a Question Mark appears.
If I scan it thru an Barcodescanner it is entirely omissed.


To Explain the question: We would like to scan an Ean128 into a Textfield in Navision. In an Ean128-Code every field with variable Length is ended by an Ascii 29 (so called FNC1 or GS Control character).

To discover where one field ends and the next begins you have to search the Ascii 29-Characters in the string in the textbox.

The textbox in Navsion seems to filter out the non-readable characters.
It is the same effect, if I put an binary oder blob-Field as source-Expression behind the textbox on the form.

Does anybody know an solution to this problem?

Comments

  • janpieterjanpieter Member Posts: 298
    I don't know if you can solve this problem in navision.

    However some barcode scanners can be programmed to add a character to the scanned sequence. Maybe if you program the scanner to add a ascii 13 character you can use this character as 'seperator'.

    Maybe the user manual of the barcode scanner can tell you more.
    In a world without Borders or Fences, who needs Windows and Gates?
  • MatthiasBrahmMatthiasBrahm Member Posts: 5
    I have found an Solution. The Barcode-Scanner we use can be programmed to replace one character by another.

    I programmed it that if the Scanner finds an FNC1 (x1D) it replaces it automatically by an # (x27).

    In Navision I can go thru the string read by the scanner und search for the #. If I find an # and the next two Characters are numeric I can assume I found an FNC1 and the last variable field ends here and the next field begins.
Sign In or Register to comment.