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

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

Recommended Posts

Posted

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?

Posted

$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 )

Posted

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!

Posted

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.

Posted

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?

This topic is 5735 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.