4 Replies Latest reply on Dec 4, 2008 8:49 AM by RSchaub

    nested quotes



      nested quotes


      I have some difficulty with this as well. they following method I have used to nest quotes. Notice doubling of quotes. 


      set contactlookup to \""&customers::contname&"\"¶ 

        • 1. Re: nested quotes



          Thank you for your post.


          The doubling of quotes is necessary.  The backslash precedes the quote you want to display.  With any text string, you also need to surround the string with quotes.  Therefore, if you want to surround a Name field in quotes, the calculation would be:


          "\"" & Name & "\""


          Does that explanation make sense?



          FileMaker, Inc. 

          • 2. Re: nested quotes

            set contactlookup to: "\"" & customers::contname & "\"" & ¶


            If customers::contname = fclark this will write :


            "fclark" and a return.


            BTW: Using the functio: Quote ( ) is simpler:


            Quote ( customers::contname )  & ¶

            • 3. Re: nested quotes
                 you may want to kill this thread. I had intended this to post to reply to a thread. I did repost there.
              • 4. Re: nested quotes

                If you want to display a ContactName in quoute you set field will look like this


                Set Field [contactlookup] "\"customers::contname \""


                The first quote mark is negated by the back slash and the second to last quote mark is negated by the second back slash


                So in this case the result would be


                "Robert Scahub"


                If I have you right. But if you are setting a lookup field why do you need quote marks?