swf Posted November 16, 2005 Posted November 16, 2005 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?
SteveB Posted November 16, 2005 Posted November 16, 2005 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
swf Posted November 16, 2005 Author Posted November 16, 2005 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
comment Posted November 16, 2005 Posted November 16, 2005 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" ]
swf Posted November 16, 2005 Author Posted November 16, 2005 Thanks, That makes total sense. It is hard to find this information in the filemaker help section.
Recommended Posts
This topic is 6950 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now