Hey there

I am unsure how to write a piece code that take out multiple strings within a string.
My string can look as this:
#1234,#4567,#3456-ABJ,#9000,#9876-MEE
or
#1234,#4567,#3456-ABJ,#9876-MEE,#9000
or
#1234,#4567,#3456-ABJ,#9000
I want to take out those where there is a DASH:
#3456-ABJ and #9876-MEE
Can anyone help me

Thanks
Ann
Comments
C/SIDE help can tell you more about these statements.
You can put the SELECTSTR into an iteration by counting the comma's. You can do that by using statements like:
strCommas := DELCHR(String,"=",DELCHR(String,'=',','));
intNumberOfCommas := STRLEN(strCommas );
I hope this is useful for you.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
First you populate the temp table with all values and then filter on '-'
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
Thanks for the help. I managed to sort it out with your help:)
Ann