Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

set field trouble

Featured Replies

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?

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

  • 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

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

  • 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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.