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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I remove a $ from a text value? 1

Status
Not open for further replies.

python138

Technical User
Sep 9, 2004
5
US
I have the following formula in Crystal v8.5:
" Face Value : "+ ToText ({acrlrpt.face_value})+" "
+ " Interest Rate : " + ToText ({acrlrpt.rate},6)+"%"

The problem is I have multiple currencies and the first character of the acrlrpt.face_value is always "$". I would like to remove the "$" but need to leave it as a text string. I have tried a couple remove commands but can't seem to get it right.

Any Ideas?
 
This should do the trick:

" Face Value : "+ right(ToText ({acrlrpt.face_value}),len(ToText ({acrlrpt.face_value}))-1)+" "
+ " Interest Rate : " + ToText ({acrlrpt.rate},6)+"%"


Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top