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.

recursive help

Featured Replies

I'm having trouble defining this in a calc. I realize I could do it with a loop, and setting a global field to concatenate. However, I was hoping for a better solution to "hard code" it.

Example:

foundset count = 4

output text = (0,1,0 | 0,2,0 | 0,3,0 | 0,4,0)

so depending on the number of records in foundset, I need to add a string and add 1 to a specific part of that string.

it will always be the second integer, following pattern 0, n, 0. for some reason, I can't figure out how to best do this.

thanks in advance.

-Kevin

It would be best to use a recursive custom function (requires the Advanced version). If you want to hardcode this, well... it depends on how large your found set can be - any hardcoding will have an upper limit.

The simplest way, IMHO, would be:


Let ( 

text = "0,1,0 | 0,2,0 | 0,3,0 | 0,4,0"

; 

"(" & Left ( text ; 8 * Get (FoundCount) - 3 ) & ")"

)

There are smarter ways to generate an ascending series without a custom functions - look for posts by user Agnès.

  • Author

thanks! I never would of thought of that calc. only problem is that only works for foundsets 4 and below. I may have foundset up to 50. i guess I could extend that initial let text string out to ..... 0,50,0. but there has got to be a better way. I will search for Agnes' posts too.

Edited by Guest

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.