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

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

Recommended Posts

Posted (edited)

hello, i would like to have a globale calculated A field that contains all of B field's contents in current found set in this format:

A=B1

B2

B3

B4

...

A and B are in a same table, how can i do it?

Edited by Guest
Posted

Hi

if you want that the global field A shows all the values of field B in the found set of records in this manner:

B1

B2

B3

...

B (last of the found set)

you can do it with a *recursive* calculation (NOT STORED and NOT GLOBAL)that use a custom function like this one, but you'll need FM8 Advanced;

--------------------------------------

Recursive(field;number)

Case(

number < Get ( FoundCount ) ; GetNthRow( field ; number ) & ¶ & Recursive ( field ; number +1 ) ;

GetNthRow( field ; number )

)

--------------------------------------

or

with a script like this ( to use after a FIND)}:(

Go to Record/Request/Page [First]

Set field [A;B]

Loop

Go to Record/Request/Page [Next: Exit after Last]

Insert Calculated Result [A; ¶ & B]

End Loop

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