How to remove comma from the end of a string in RDLC text box formula field?
Here is the expression:
=Fields!Titles.Value
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re sure there won’t be any other commas (and are okay with removing all of them), you can replace the commas with nothing, like this:
If there could be commas elsewhere in the fields that you don’t want to remove (and you want to remove commas occurring at the end of the field only), you could do something like this:
If there can be whitespace before or after the comma, you’ll need to add handling for that also (use
Trim,LTrim, andRTrimas needed for your situation).