Advertisement

03.04.2007 at 07:45PM PST, ID: 22427425
[x]
Attachment Details

Using Crystal 11 Can I use startswith in select statement

Asked by shogun5 in Clarion, Crystal Reports Software

Tags: crystal, select, statement, startswith

In Crystal Reports 11 is it possible to use startswith in a Select Case statement?
Please reference the following code:

//Purpose: Get semester 1 grade

IF TRIM(UPPERCASE({semester}))
 startswith "S1"
    Then {semester-grade}
 ELSE
IF TRIM(UPPERCASE({semester}))
 like "S1"
    Then {semester-grade}
 ELSE
IF TRIM(UPPERCASE({semester}))
 like "S 1"
    Then {semester-grade}
IF TRIM(UPPERCASE({semester}))
 like "SEM 1"
    Then {semester-grade}
 ELSE
     ""

I'd like to use something like this:

SELECT TRIM(UPPERCASE({semester}))
    CASE "SEM 1", "S1", "S 1":
        {semester-grade}
    DEFAULT:
        "";

Can I add something like startswith "S1"  in the select statement?

Thanks in advance!
Start Free Trial
[+][-]03.04.2007 at 07:48PM PST, ID: 18652435

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.04.2007 at 08:13PM PST, ID: 18652514

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.04.2007 at 08:59PM PST, ID: 18652646

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Clarion, Crystal Reports Software
Tags: crystal, select, statement, startswith
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.04.2007 at 09:01PM PST, ID: 18652654

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.05.2007 at 03:03AM PST, ID: 18653545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32