Convert String in Crystal Reports 2008

Posted on 2011-10-11
Last Modified: 2012-05-12
I've got a barcode that is supposed to be for a quantity, but when the barcode exceeds a digit over one thousand, a comma appears in the output.  Is there a way to convert the string so that it won't display/output the comma in either the barcode or on-screen?  An example would be the code (attached) should output "Q1000", not Q1,000

"*Q" & {?PalletQty} & "*";

Open in new window

Question by:Kyle Witter
    LVL 100

    Accepted Solution

    Try explicitly converting the string.  The implicit conversion of a number to a string uses the default format

    "*Q" & CStr({?PalletQty},0,"") & "*";

    0 - number of decimals
    "" - thousand separator (none)

    LVL 1

    Author Closing Comment

    by:Kyle Witter
    This worked perfectly, thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now