tommypmadison Posted March 13, 2007 Posted March 13, 2007 Hello, I have a field with 15 sections separated by commas. is there a way to extract the data between each comma separation??? Thank you, Tom
mr_vodka Posted March 13, 2007 Posted March 13, 2007 There are a few different ways to parse out the info but to give you the best way maybe a little more info. You could use funtions such as Left, LeftWords, MiddleWords, RightWords, or LeftValues, MiddleValues, RightValues. You would have to use a substitute () first to substitute your commas into ¶ or spaces if there are no spaces following the commas.
comment Posted March 13, 2007 Posted March 13, 2007 To extract the 4th section, for example: Let ( [ n = 4 ; t = "," & YourField & "," ; start = Position ( t ; "," ; 1 ; n ) + 1 ; end = Position ( t ; "," ; 1 ; n + 1 ) ] ; Middle ( t ; start ; end - start ) ) To extract any other section, just change the definition of the n parameter.
Raybaudi Posted March 13, 2007 Posted March 13, 2007 Hi comment isn't nicer with a Trim ? Trim ( Middle ( t ; start ; end - start ) )
Recommended Posts
This topic is 6465 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