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 right of the "-" get the result as 00000112345?
I looked for a regex and substring but crystal doesn't seem to have these functions available.