November 16, 200520 yr I would like to set a field to multiple values as if I was typing multiple values into a field set field(abbreviation)= "na" "k" "cl" "bun" It will not let me do this any ideas?
November 16, 200520 yr SetField(myfield)= "NA" & " k " & "bun") or SetField(myfield)= "NA¶" & "K¶" & "bun") The 1st will give you "NA K bun"; the 2nd will put each string on its own line. You didn't tell us what purpose are you trying to accomplish. Steve
November 16, 200520 yr Author The second option is what I want. I am trying to set a global field in a script. The global field is used in a multicriteria relationship and needs to have multiple values each on a separate line, na k bun etc My mistake was in the syntax. I thought the paragraph operator was enough between values but filemaker wanted paragraph and ampersand. Thanks
November 16, 200520 yr The paragraph operator IS enough between values. But when you close quotes, the text string ends. To append another string, you need to add & "another string". IOW, Set Field [ myfield ; "na¶" & "k¶" & "cl¶" & "bun" ] is the same as Set Field [ myfield ; "na¶k¶cl¶bun" ]
November 16, 200520 yr Author Thanks, That makes total sense. It is hard to find this information in the filemaker help section.
Create an account or sign in to comment