Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6950 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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

Posted

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

Posted

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" ]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.