Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

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.

Posted

Yours:

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

Mine:

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

Yep, they're similar.

Posted

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.

Posted

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

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