Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Hi All,

I am new to filemaker and Scripting. Could someone possibly tell me the script i need to combine the text from three separate text fields and insert it into a fourth text field with each result on a new line.

Many Thanks

Giles

Posted

Set variable [$one;firstfield]

Set variable [$two;secondfield]

Set variable [$three;thirdfield]

Set field [fourthfield; $one & ¶ & $two & ¶ & $three]

Posted

Are yoy sure that you need a script ?

Because you could obtain the same result with a calculation field ( or an auto-enter calculation on a normal text field ) using simple the List ( ) function, something like:

List ( Field1 ; Field2 ; Field3 )

Posted

I prefer the list function:

Set variable [$one;firstfield]

Set variable [$two;secondfield]

Set variable [$three;thirdfield]

Set field [fourthfield; List( $one ; $two ; $three) ]

  • Newbies
Posted

Hi all,

Thanks for your help.

One other query I had would be:

Say I have a 5 fields I want a seperate field to tell me how many of the 5 have been filled in with text, is there a calculation i could do for that??

Thanks Again

Giles

  • Newbies
Posted (edited)

You've all been a great help, I'm all sorted.

Thanks very much for your time

Giles

Edited by Guest
Posted

Why not simply:

Set field [ Field4 ; List ( Field1 ; Field2 ; Field3 ) ]

That's assuming a script is required at all.

I was just going along with the original format; and sometimes using variables in a script allows for easier debugging. But of course your suggestion works fine and I agree completely that it's a valid and simpler solution.

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