jim0203 Posted March 12, 2009 Posted March 12, 2009 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?
dansmith65 Posted March 12, 2009 Posted March 12, 2009 $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 )
jim0203 Posted March 12, 2009 Author Posted March 12, 2009 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!
dansmith65 Posted March 12, 2009 Posted March 12, 2009 not off-hand, I know it's pretty big though. you should be able to find it on filemaker.com
comment Posted March 12, 2009 Posted March 12, 2009 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.
dansmith65 Posted March 13, 2009 Posted March 13, 2009 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now