Jump to content
Salesforce and other SMB Solutions are coming soon. ×

extracting words after first two


mcbradford

Recommended Posts

I know I am overlooking this, but how do I extract all the words after the first two words. For example - FileMaker cafe is the best tool! I want to extract is the best tool! Please note, the string is never the same (amount of words). What I am doing is bolding the first two words, then the remaining words will be normal.

Link to comment
Share on other sites

This is one of my strings...

 

HCl GT 3M, 3N, 25 Wt%

 

Using...

 

Middle( Complete Reagent Name , 3, WordCount( Complete Reagent Name))

 

I get...

 

l GT 3

Link to comment
Share on other sites

rightwords(string; wordcount(string)-2)

 

will give

 

3M, 3N, 25 Wt

 

without the % sign. confused.gif probably because % is not recognised by word functions, just like "-"

 

Case(Right(string;1)="%";RightWords(string;WordCount(string)-2)&"%";RightWords(string;WordCount(string)-2))

will stick a % to the result if it's there in the original field. better:

 

Right(string;Length(string)-Position(string;" ";1;2))

 

will leave the % mark in place

 

kjoe

smirk.gif

 

ps btw, MiddleWords( Complete Reagent Name , 3, WordCount( Complete Reagent Name))

will work like mrease suggested, but also without the %

Link to comment
Share on other sites

Guest Yukon Cornelous

[ QUOTE ]

This is one of my strings...

 

HCl GT 3M, 3N, 25 Wt%

 

Using...

 

Middle( Complete Reagent Name , 3, WordCount( Complete Reagent Name))

 

I get...

 

l GT 3

 

[/ QUOTE ]

 

MrEase said MiddleWords( ) not Middle( )

Link to comment
Share on other sites

You'll loose the % sign using MiddleWords or RightWords. See my post above if that's not acceptable. Also it will count blah-blah as two words so may give faulty results if it should be seen as one.

 

kjoe

smirk.gif

Link to comment
Share on other sites

Hello,

 

I am new to FM (5.5). We have a FM database that tracks trainer workshop activity and a request has been made to prevent a record from being modified after the workshop has been completed. How can this be done?

 

Thank you for your help!

 

Vince

Link to comment
Share on other sites

There's nothing to get excited about. It was an honest mistake! I am new to this forum and I didn't realize I was in your post when I attempted to send one of my own.

Link to comment
Share on other sites

I noticed that afterwards. So he did both. Can you delete these four posts, as a Moddie? wink.gif

 

 

Hi -queue-

I can edit in anything or move the post, but I cannot delete, there's no button for it. laugh.gif

Link to comment
Share on other sites

Create a duplicate layout upon which no fields are enterable. When a certain condition is met, your data entry script then goes to that layout instead of the enterable one.

 

Tom smile.gif

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

Terms of Use