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.

Position/Left function

Featured Replies

I need extract certain characters from a text field. As an example I want just the second letter "e" from a text field containing the word "text". I believe I should use the position and left functions. I can't quite figure out how these work.

No, you need the Middle() function for this.

I agree.

However, the word "text" only has 1 "e", that not withstanding, I would suggest the following combination:

Middle ( SuppliedTextField ; Position ( SuppliedTextField ; "e" ; 1 ; 2 ) ; 1 )

Were the field not to contain a second "e" or your desired criteria, whatever that might be, what do you want returned as a result?

HTH

Tim

the word "text" only has 1 "e", that not withstanding, I would suggest the following combination:

Middle ( SuppliedTextField ; Position ( SuppliedTextField ; "e" ; 1 ; 2 ) ; 1 )

If the supplied text contains only one occurence of the "e" character, the calculation will return the first character of the supplied text.

If the supplied text does contain a second occurence of the "e" character, then it's a safe bet the result is going to be "e" - why calculate at all?

I am under the impression the question is actually "what is the second letter of text" - which is answered by:

Middle ( text ; 2 ; 1 )

I am under the impression the question is actually "what is the second letter of text"
That would make sense, wouldn't it?

I misread the op, sorry.

Tim

  • Author

The question was "what is the second character", and middle does it. I knew there had to be a simple way to extract what I needed. Thanks!

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.