Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Unwnated Characters

Status
Not open for further replies.

SMosley804

Technical User
Oct 15, 2007
44
0
0
US
Crystal Reports Developer v11
IBM DB2


I have a field that has unwanted characters in the string. I want to remove those unwanted characters.

ex.

The field value= lbzds01:TEP

I want to remove everything after the colon.
 
To also remove the colon, use:

left({table.field},instr({table.field},":")-1)

To leave the colon in:

left({table.field},instr({table.field},":"))

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top