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.

need ValuePosition from first words in list

Featured Replies

This is what I am trying to do.

0234 - someText

0235 - more 123 Text

0236 - other text

This is my list that I have ( folder names in a directory )

I know the ID "0235 -" pattern its the first word of the list.

I am trying to return the value of 2 in the above example.

I would be happy for a function to strip the list only to the first word then I can use another function to determine it's position.

Most of the position value functions out there assume the string is return sep - in my case its a 'starts with'

and I can't use a Filter() cause there could be numbers in the list.

Try =

ValueCount ( Left ( listOfValues ; Position ( ¶ & listOfValues ; ¶ & searchValue ; 1 ; 1 ) ) )

You mean "similar". :P

Yours:

ValueCount ( Left ( listOfValues ; Position ( ¶ & listOfValues ; ¶ & searchValue ; 1 ; 1 ) ) )

Mine:

ValueCount ( Left ( ¶ & $$gIDs & ¶ ; Position ( ¶ & $$gIDs & ¶ ; ¶ & ID ; 1; 1 ) ) )

Yep, they're similar.

Well, I hope you're not suggesting I took it from you...

No worries. Anyone who takes a stab at this problem is going to arrive at more or less the same calculation (as I discovered upon searching Brian Dunning's CF site).

For anyone interested, Kevin Frank just wrote up an article about this over on filemakerhacks.com.

Anyone who takes a stab at this problem is going to arrive at more or less the same calculation

True. In fact, I thought it was too trivial to post as an independent function:

http://www.briandunning.com/cf/908

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.