metropoj
21st February 2007, 17:07
CASE Stmt Syntax, a simple Question ?
Been using CASE stmt's in Baan Script but never used an "Else" option before. Is there such an option?
My stmt is as follows in Baan script:
companynum = get.compnr()
on case companynum
case 340:
reportgrp = 34
break
case 430:
reportgrp = 43
break
end case
I want to insert a CASE ELSE after case 430 (if there is such a thing) to make the reportgrp option to 1 if none of the above company conditions are met ....
Thx !
Been using CASE stmt's in Baan Script but never used an "Else" option before. Is there such an option?
My stmt is as follows in Baan script:
companynum = get.compnr()
on case companynum
case 340:
reportgrp = 34
break
case 430:
reportgrp = 43
break
end case
I want to insert a CASE ELSE after case 430 (if there is such a thing) to make the reportgrp option to 1 if none of the above company conditions are met ....
Thx !