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

Viewing 2 reply threads
  • 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 22
      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

Viewing 2 reply threads
  • The forum ‘Documentation elements, text handling’ is closed to new topics and replies.