Tech Off Post

Single Post Permalink

View Thread: Problems with Chr(0)
  • User profile image


    I am having a bit of a problem regarding chr(0)

    Basically, I need to send Chr(0) as part of a string to a POS Printer (it resets the font to the standard size, family etc)

    However Chr(0) seems to be a black hole.

    As soon as it is added to a stringbuilder, anything appended after it disappears.

    It I concatenate strings (ugly and inefficient, I know) it also makes and extra string additions disappear!

    Can anybody suggest anything?