Jump to content
Sign in to follow this  

Left Text of a specific word

Recommended Posts

Does any have a quick calculation when trying to get all the text left of a specific word in a field? In this case the word is "time".



Share this post

Link to post
Share on other sites

name: Left Of

parameters: string, matchstring



FirstCharOfMatchString = Position ( string; matchstring ; 1 ; 1 );

Left( string; FirstCharOfMatchString - 1 )


All you have to do is pass the string you are `searching for` as matchstring and the string you are `searching` as string. As an example:

Left Of ( "This post was just in time to fix the problem" ; " time" )

would return "This post was just in ". A caveat to this approach is that it will match words like timely or multimedia

Edited by Guest

Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

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