Loading ...
Sorry, an error occurred while loading the content.
 

variable loses quotes

Expand Messages
  • loro
    Hi, If I select a string that happens to be surrounded by double quotes and use ^$GetSelection$ to get it and then put it in a variable the variable loses
    Message 1 of 1 , Sep 25, 2002
      Hi,

      If I select a string that happens to be surrounded by double quotes and use
      ^$GetSelection$ to "get" it and then put it in a variable the variable
      loses the quotes.

      Try this:
      ----------------
      h="Lost quotes"
      ^!Set %content%=^$GetSelection$
      ^!Info ^$GetSelection$
      ^!Info ^%content%
      ----------------

      The following example strings work (select the quotes too).

      "one two three
      one two three"
      'one two three'

      But not this:
      "one two three"

      The double quotes are there in ^$GetSelection$ but are lost when
      ^$GetSelection$ is assigned to my variable.

      Huh?


      Lotta
    Your message has been successfully submitted and would be delivered to recipients shortly.