Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

 
Long expressions (ON CASE)
By patvdv at 26 Feb 2008 - 21:56


Long expressions (ON CASE)

The expression after ON CASE is evaluated and compared with the various CASE expressions that follow. All expressions in the case labels must be of type LONG or STRING. When string expressions are used, the ASCII value of the string is compared with the ON CASE expression. For example:

 ON CASE weekday
CASE 1:
day = "Sunday"
BREAK
CASE 2:
day = "Monday"
BREAK
CASE 3:
day = "Tuesday"
BREAK
DEFAULT:
day = "other day"
ENDCASE

It is also possible to execute a statement for multiple labels. For example

 ON CASE weekday
CASE 1:
CASE 2:
CASE 3:
CASE 4:
beginweek()
BREAK
CASE 5:
CASE 6:
CASE 7:
endweek()
BREAK
ENDCASE

Related topics

0
No votes yet


All times are GMT +2. The time now is 22:11.


©2001-2018 - Baanboard.com - Baanforums.com