How do I declare string that consist of quotation marks

Home Forums Problems and solutions in GDL Documentation elements, text handling How do I declare string that consist of quotation marks

This topic contains 2 replies, has 2 voices, and was last updated by  Barry Kelly 2 months, 4 weeks ago.

  • Author
    Posts
  • #3501

    Maciek Bajor
    Participant

    Hi,
    I wanna declare string like:

    some_string = "This is "my" string"

    so it would print as

    This is "my" string

    I don’t see anything in the reference guide.

    Thank you

  • #3502

    Maciek Bajor
    Participant

    Ok I got it, you need to put it between ` signs

    Please delete this topic, sorry for the spam

  • #3503

    Barry Kelly
    Participant

    I don’t think it matters which quotation symbol you use but the main quote symbols must be different to the internal symbols.
    so you could have …

    “This is ‘my’ string”

    or

    ‘This is “my” string’

    Depending on which symbol you want to see in your final string.

    Barry.

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

You must be logged in to reply to this topic.