Jump to content
Server Maintenance This Week. ×

need ValuePosition from first words in list


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

Recommended Posts

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.

Link to comment
Share on other sites

Yours:

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

Mine:

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

Yep, they're similar.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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