Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • display "string

    I am curious to know how the 'display' command displays a string without a closing quote? For example, if I write display "Stata, it displays Stata. Is this deliberate or bug ? I have tried this version 15, 16. Are there any other commands that behaves similarly?

  • #2
    This works:
    Code:
    . di `""Stata"'
    "Stata
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Thanks. My curiosity was something else. Generally when we display a text we put that in quote/unquote (double quoted string or compound double quoted string). For example, to display the text Stata in results window, one has to write display "Stata". But even if someone writes display "Stata, then also Stata gets displayed in the results window. So I was wondering if this was deliberate or something else. The syntax for display command is display "double-quoted string".

      Comment

      Working...
      X