1

Crystal レポートで次のエラーが表示されます。

残りのテキストは式の一部ではありません

エラーは、私の式の最後の行を指しています:zone;

式の何が問題になっていますか? 他の方法でそれを行うことはできますか?

stringVar zone := '';
if {?ParamPuntenboek} = 'Begin schooljaar' then
        (if {LEERLING_LEERLING.LEERJAAR} = '4'then
            select(toNumber({@4BTOT}))
                case '99': zone := 'A'
                case '97': zone := 'A'
                case '95': zone := 'A'
                case '93': zone := 'A'
                case '90': zone := 'A'
                case '85': zone := 'A'
                case '80': zone := 'A'
                case '75': zone := 'A'
                case '70': zone := 'B'
                case '65': zone := 'B'
                case '60': zone := 'B'
                case '55': zone := 'B'
                case '50': zone := 'B'
                case '45': zone := 'C'
                case '40': zone := 'C'
                case '35': zone := 'C'
                case '30': zone := 'C'
                case '25': zone := 'C'
                case '20': zone := 'D'
                case '15': zone := 'D'
                case '10': zone := 'E'
                case '7': zone := 'E'
                case '5': zone := 'E'
                case '3': zone := 'E'
                case '1': zone := 'E'
                case '0': zone := 'E'
                default: zone := '';
        if {LEERLING_LEERLING.LEERJAAR} = '5'then
            select(toNumber({@5BTOT}))
                case '99': zone := 'A'
                case '97': zone := 'A'
                case '95': zone := 'A'
                case '93': zone := 'A'
                case '90': zone := 'A'
                case '85': zone := 'A'
                case '80': zone := 'A'
                case '75': zone := 'A'
                case '70': zone := 'B'
                case '65': zone := 'B'
                case '60': zone := 'B'
                case '55': zone := 'B'
                case '50': zone := 'B'
                case '45': zone := 'C'
                case '40': zone := 'C'
                case '35': zone := 'C'
                case '30': zone := 'C'
                case '25': zone := 'C'
                case '20': zone := 'D'
                case '15': zone := 'D'
                case '10': zone := 'E'
                case '7': zone := 'E'
                case '5': zone := 'E'
                case '3': zone := 'E'
                case '1': zone := 'E'
                case '0': zone := 'E'
                default: zone := '';
        if {LEERLING_LEERLING.LEERJAAR} = '6'then
            select(toNumber({@6BTOT}))
                case '99': zone := 'A'
                case '97': zone := 'A'
                case '95': zone := 'A'
                case '93': zone := 'A'
                case '90': zone := 'A'
                case '85': zone := 'A'
                case '80': zone := 'A'
                case '75': zone := 'A'
                case '70': zone := 'B'
                case '65': zone := 'B'
                case '60': zone := 'B'
                case '55': zone := 'B'
                case '50': zone := 'B'
                case '45': zone := 'C'
                case '40': zone := 'C'
                case '35': zone := 'C'
                case '30': zone := 'C'
                case '25': zone := 'C'
                case '20': zone := 'D'
                case '15': zone := 'D'
                case '10': zone := 'E'
                case '7': zone := 'E'
                case '5': zone := 'E'
                case '3': zone := 'E'
                case '1': zone := 'E'
                case '0': zone := 'E'
                default: zone := '';)
else
    (if {?ParamPuntenboek} = 'Midden schooljaar' then
            (if {LEERLING_LEERLING.LEERJAAR} = '3'then
                select({@3MTOT})
                    case '99': zone := 'A'
                    case '97': zone := 'A'
                    case '95': zone := 'A'
                    case '93': zone := 'A'
                    case '90': zone := 'A'
                    case '85': zone := 'A'
                    case '80': zone := 'A'
                    case '75': zone := 'A'
                    case '70': zone := 'B'
                    case '65': zone := 'B'
                    case '60': zone := 'B'
                    case '55': zone := 'B'
                    case '50': zone := 'B'
                    case '45': zone := 'C'
                    case '40': zone := 'C'
                    case '35': zone := 'C'
                    case '30': zone := 'C'
                    case '25': zone := 'C'
                    case '20': zone := 'D'
                    case '15': zone := 'D'
                    case '10': zone := 'E'
                    case '7': zone := 'E'
                    case '5': zone := 'E'
                    case '3': zone := 'E'
                    case '1': zone := 'E'
                    case '0': zone := 'E'
                    default: zone := '';
            if {LEERLING_LEERLING.LEERJAAR} = '4'then
                select(toNumber({@4MTOT}))
                    case '99': zone := 'A'
                    case '97': zone := 'A'
                    case '95': zone := 'A'
                    case '93': zone := 'A'
                    case '90': zone := 'A'
                    case '85': zone := 'A'
                    case '80': zone := 'A'
                    case '75': zone := 'A'
                    case '70': zone := 'B'
                    case '65': zone := 'B'
                    case '60': zone := 'B'
                    case '55': zone := 'B'
                    case '50': zone := 'B'
                    case '45': zone := 'C'
                    case '40': zone := 'C'
                    case '35': zone := 'C'
                    case '30': zone := 'C'
                    case '25': zone := 'C'
                    case '20': zone := 'D'
                    case '15': zone := 'D'
                    case '10': zone := 'E'
                    case '7': zone := 'E'
                    case '5': zone := 'E'
                    case '3': zone := 'E'
                    case '1': zone := 'E'
                    case '0': zone := 'E'
                    default: zone := '';
            if {LEERLING_LEERLING.LEERJAAR} = '5'then
                select(toNumber({@5MTOT}))
                    case '99': zone := 'A'
                    case '97': zone := 'A'
                    case '95': zone := 'A'
                    case '93': zone := 'A'
                    case '90': zone := 'A'
                    case '85': zone := 'A'
                    case '80': zone := 'A'
                    case '75': zone := 'A'
                    case '70': zone := 'B'
                    case '65': zone := 'B'
                    case '60': zone := 'B'
                    case '55': zone := 'B'
                    case '50': zone := 'B'
                    case '45': zone := 'C'
                    case '40': zone := 'C'
                    case '35': zone := 'C'
                    case '30': zone := 'C'
                    case '25': zone := 'C'
                    case '20': zone := 'D'
                    case '15': zone := 'D'
                    case '10': zone := 'E'
                    case '7': zone := 'E'
                    case '5': zone := 'E'
                    case '3': zone := 'E'
                    case '1': zone := 'E'
                    case '0': zone := 'E'
                    default: zone := '';
            if {LEERLING_LEERLING.LEERJAAR} = '6'then
                select(toNumber({@6MTOT}))
                    case '99': zone := 'A'
                    case '97': zone := 'A'
                    case '95': zone := 'A'
                    case '93': zone := 'A'
                    case '90': zone := 'A'
                    case '85': zone := 'A'
                    case '80': zone := 'A'
                    case '75': zone := 'A'
                    case '70': zone := 'B'
                    case '65': zone := 'B'
                    case '60': zone := 'B'
                    case '55': zone := 'B'
                    case '50': zone := 'B'
                    case '45': zone := 'C'
                    case '40': zone := 'C'
                    case '35': zone := 'C'
                    case '30': zone := 'C'
                    case '25': zone := 'C'
                    case '20': zone := 'D'
                    case '15': zone := 'D'
                    case '10': zone := 'E'
                    case '7': zone := 'E'
                    case '5': zone := 'E'
                    case '3': zone := 'E'
                    case '1': zone := 'E'
                    case '0': zone := 'E'
                    default: zone := '';)
    else
        if {?ParamPuntenboek} = 'Einde schooljaar' then
                (if {LEERLING_LEERLING.LEERJAAR} = '3'then
                    select(toNumber({@3ETOT}))
                        case '99': zone := 'A'
                        case '97': zone := 'A'
                        case '95': zone := 'A'
                        case '93': zone := 'A'
                        case '90': zone := 'A'
                        case '85': zone := 'A'
                        case '80': zone := 'A'
                        case '75': zone := 'A'
                        case '70': zone := 'B'
                        case '65': zone := 'B'
                        case '60': zone := 'B'
                        case '55': zone := 'B'
                        case '50': zone := 'B'
                        case '45': zone := 'C'
                        case '40': zone := 'C'
                        case '35': zone := 'C'
                        case '30': zone := 'C'
                        case '25': zone := 'C'
                        case '20': zone := 'D'
                        case '15': zone := 'D'
                        case '10': zone := 'E'
                        case '7': zone := 'E'
                        case '5': zone := 'E'
                        case '3': zone := 'E'
                        case '1': zone := 'E'
                        case '0': zone := 'E'
                        default: zone := '';
                if {LEERLING_LEERLING.LEERJAAR} = '4'then
                    select(toNumber({@4ETOT}))
                        case '99': zone := 'A'
                        case '97': zone := 'A'
                        case '95': zone := 'A'
                        case '93': zone := 'A'
                        case '90': zone := 'A'
                        case '85': zone := 'A'
                        case '80': zone := 'A'
                        case '75': zone := 'A'
                        case '70': zone := 'B'
                        case '65': zone := 'B'
                        case '60': zone := 'B'
                        case '55': zone := 'B'
                        case '50': zone := 'B'
                        case '45': zone := 'C'
                        case '40': zone := 'C'
                        case '35': zone := 'C'
                        case '30': zone := 'C'
                        case '25': zone := 'C'
                        case '20': zone := 'D'
                        case '15': zone := 'D'
                        case '10': zone := 'E'
                        case '7': zone := 'E'
                        case '5': zone := 'E'
                        case '3': zone := 'E'
                        case '1': zone := 'E'
                        case '0': zone := 'E'
                        default: zone := '';
                if {LEERLING_LEERLING.LEERJAAR} = '5'then
                    select(toNumber({@5ETOT}))
                        case '99': zone := 'A'
                        case '97': zone := 'A'
                        case '95': zone := 'A'
                        case '93': zone := 'A'
                        case '90': zone := 'A'
                        case '85': zone := 'A'
                        case '80': zone := 'A'
                        case '75': zone := 'A'
                        case '70': zone := 'B'
                        case '65': zone := 'B'
                        case '60': zone := 'B'
                        case '55': zone := 'B'
                        case '50': zone := 'B'
                        case '45': zone := 'C'
                        case '40': zone := 'C'
                        case '35': zone := 'C'
                        case '30': zone := 'C'
                        case '25': zone := 'C'
                        case '20': zone := 'D'
                        case '15': zone := 'D'
                        case '10': zone := 'E'
                        case '7': zone := 'E'
                        case '5': zone := 'E'
                        case '3': zone := 'E'
                        case '1': zone := 'E'
                        case '0': zone := 'E'
                        default: zone := '';)
)
zone;
4

1 に答える 1

0

問題を解決するには、次の行から ( を削除します

(if {?ParamPuntenboek} = 'Midden schooljaar' then

前に式の下部にある ) を削除します

zone;
于 2013-04-02T03:55:18.090 に答える