1

我在水晶报告中收到以下错误:

其余文本不属于公式的一部分

错误指向我公式的最后一行: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 回答