Jump 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.
Juggernaut

Concatenation and parsing

Featured Replies

  • Newbies

Hi there,

I'm using the new List function, and it's really sped one of my scripts up, but to pass data between several fields, I need to work with a concatenated field. That's no problem. The problem is that when I parse the data from the concatenated field, using the

MiddleWords() script step, negative numbers lose their sign.

I'm sure there are plenty of ways around this, but does anyone know the best practice/easiest way?

Thanks,

Dave

I didn't quite get what you want to do, but I am guessing you want the MiddleValues() function?

... or GetValue if you just want to extract a single value.

If I am reading your post correctly, I think you have created a calculation using a list function that gives you a list of a concat field, which you use a space as a delineator. Then you want to parse out each individual row of the list into seperate fields.

If that is the case and since the "-" character is regarded as a space, you would need to use a substitute function to substitute the "-" character for something else "*" then use a another substitute for your parsing calc to get the "-" back

  • Author
  • Newbies

Yep, you get it.

Sorry I wasn't more careful or explicit in my initial post. I was guessing the solution would require Subtitute, but didn't fully get why. (I thought maybe GetAsNumber() would make FMP realize the "-" was a minus sign rather than a hyphen, which you say counts as a space.)

Thanks for the help, and for the recommendation.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.