In NF you can write a statement like
CASE a OF
1.. 10 : BEGIN
END
11.20 : BEGIN
END;
END
This is not possible in version 3.xx, however, you can circumvent it by using the below construction
CASE TRUE OF
(a > 0 AND a < 11): BEGIN
END;
(a > 10 AND a < 21) : BEGIN
END;
END;
The first TRUE statement will be executed, however note that unlike C/C++ there is no fall through, so the CASE condition will be exited after the first true condition
/Lars
Lars Strøm Valsted
Head of Project & Analysis, Navision Competence Center
Columbus IT Partner
0