1
我跑在Crystal Reports下面的代碼,它告訴我,水晶報表錯誤:「字符串這裏需要」上選擇
" string is required here"
在第二殼上。我試過鑄造{?PM-Student_course_attendance_csv.Level}爲一個字符串,但沒有運氣
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;
什麼類型的字段?(參數{?PM-Student_course_attendance_csv .Level}和看起來像db字段{PM_csv.mv_value}) – Krease
所有類型字符串 – pluke