macrabbit Posted April 28, 2013 Posted April 28, 2013 Hello, I need to remove text in a field which is separated by a ":". Is there a way of telling FM to use ":" as a delimiter and remove or replace any text that is following a ":" ? Thanks!
doughemi Posted April 28, 2013 Posted April 28, 2013 This calculation should do it: Let([ len = length(Self); colon_pos = Position(Self; ":"; 1;1); up_to_colon = Left(Self; colon_pos); after_colon = Right(Self; len - colon_pos +1)]; up_to_colon & "new text to display after colon" ) Set the field as a text field and set it to auto enter the above calculation. If the data in the field is being imported or manually entered after the record is created, uncheck the "do not replace the existing value..." checkbox. 1
Recommended Posts
This topic is 4226 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 accountSign in
Already have an account? Sign in here.
Sign In Now