Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8820623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:39:14+00:00 2026-06-14T05:39:14+00:00

I run the following code in crystal reports and it tells me that string

  • 0

I run the following code in crystal reports and it tells me that

” string is required here”

on the second case. I’ve tried casting {?Pm-Student_course_attendance_csv.Level} as a string, but no luck

 Global NumberVar grade;
 Global NumberVar baseline;

Select ({?Pm-Student_course_attendance_csv.Level})
  Case "R", "TL", "TU", "OTH", "P", "BTECFS": 
    If (CStr({PM_csv.mv_value}) = "Pass") Then
       "On Track"
    Else
       "Below"

  Case "H", "ASD", "AD", "AS", "G":     //error from this line onwards inclusive
     Select (CStr({PM_csv.mv_value}))
        Case "A*":
            grade := 11
        Case "A*/A":
            grade := 10
        Case "A":
            grade := 9
        Case "A/B":
            grade := 8
        Case "B":
            grade := 7
        Case "B/C":
            grade := 6
        Case "C":
            grade := 5
        Case "C/D":
            grade := 4
        Case "D":
            grade := 3
        Case "D/E":
            grade := 2
        Case "E":
            grade := 1
        Case "U":
            grade := 0
        Default :
            grade := 0;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:39:16+00:00Added an answer on June 14, 2026 at 5:39 am

    Your formula cannot have two different return types. From the error and above it returns a string, but below it you are trying to return a number (A formula’s return type is also the last assignment, so if the last thing your formula does is grade:=1 then the formula tries to return the value 1, which it obviously won’t allow you to do. You have to add a string return value for each case in the second half of the formula.

    ...
      Case "H", "ASD", "AD", "AS", "G":     //error from this line onwards inclusive
         Select (CStr({PM_csv.mv_value}))
            Case "A*":
                grade := 11;
                "Return value" //<---- Must be a string
            Case "A*/A":
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried to run following code Gson gson = new Gson(); String json
If I run the following code, it only prints interfaces that are in the
I tried to run the following code from http://docs.python.org/library/mmap.html import mmap # write a
i am trying to run following code mDb.beginTransaction(); String updateQuery =INSERT INTO MAAccounts(userId, accountId,
I tried to run the following code : public class URLConnectionReader { public static
I want to run the following code: ajaxUpdate(10); With a delay of 1 second
If you run the following code, you will see that the URI has a
I tried to run the following code on the php console of a development
I run the following code on a page (#home) that should smoothly inject a
I run the following code in DOS shell to generate a SCR file that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.