Use of commas (,) in calculations

Viewing 2 reply threads
  • Author
    Posts
  • December 31, 2018 at 6:40 AM #33056

    Victor Warner
    Participant

    I wanted to create a field with a calculation, part of which was to put a number of fields together. For example:

    Fields: Town and Postcode

    As calculation: Town + ” ” + Postcode

    But if I wanted a comma between Town and Postcode the following calculation does not work:

    Town + “, ” + Postcode

    Nothing appears in the field.

    However, if the comma is preceded with a backslash then it does work.

    Town + “\, ” + Postcode

    I do not believe this is documented in the manual. A normal character (such as a “a” etc) does not, it appears, need the backslash.

    If what I describe is correct, what other characters need the backslash? And could this requirement be documented in the manual?

    December 31, 2018 at 2:05 PM #33057

    Brendan
    Keymaster

    Hi Victor,

    I’ve added a note about this at the end of the Calculations topic in the online user manual.

    You need to prefix the comma, semi-colon, and double-quote characters with a backslash character.

    January 1, 2019 at 3:19 AM #33062

    Victor Warner
    Participant

    Brendan,

    Thank you for the information.

Viewing 2 reply threads

You must be logged in to reply to this topic.