Crystal reports: is there a way to regex in crystal reports?

前端 未结 4 1703
傲寒
傲寒 2020-12-18 06:14

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,

4条回答
  •  北海茫月
    2020-12-18 06:59

    Crystal might not have regex but it certainly has all the basic string functions

    Something like this should do it for you (not tested):

    Left({OrderNumber}, InStr({OrderNumber}, "-") - 1) 
    

提交回复
热议问题