I have a crystal report function which requires me to trim off characters which start with a "-" and delete the rest following the the "-" (dash).
for example.. I would have order number 00000112345-C43-PJ
how would I just trim off everything from the "-" and to the right and get the result 00000112345
I looked for a regex and substring but cr doesn't seem to have these functions available. thanks in advance