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.

Appending data to a variable

Featured Replies

Is it possible to append data to a variable in a script?

e.g., $variable = "abcdefg"

{Run script appending "hijklmnop" to $variable}

$variable = "abcdefghijklmnop"

Also, is it possible to insert a line break character in this way?

$variable = "abcdefg"

$variable = $variable & "hijklmnop"

($variable now equals "abcdefghijklmnop")

$variable = "abcdefg"

$variable = $variable & "¶" & "hijklmnop"

($variable now equals "abcdefg

hijklmnop")

¶ = line break ( press Alt + 20 on windows, not sure about Mac, or use the ¶ button in the "Specify Calculation" window )

  • Author

Thank you, that's perfect.

You don't happen to know the maximum length of a text variable in Filemaker, do you? Now that I know how to concatenate variables I'll probably go crazy with it!

not off-hand, I know it's pretty big though. you should be able to find it on filemaker.com

I don't know of a limitation other than available memory.

Note that a script can modify local variables only if they were created during the runtime of the script. Your original example cannot work as stated, unless the (pre-existing) variable is a global one.

I knew I had seen field size limits somewhere... http://www.filemaker.com.au/products/7/fm/new_features.html

"Fields can store up to 4 gigabytes. Text fields can now store up to 2 gigabytes."

That was for version 7 though - does anybody know if these limits are the same for version 10?

Fields are not variables.

oops!

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.