View previous topic :: View next topic
|
Author |
Message |
small_world
New User
Joined: 22 Jul 2005 Posts: 24 Location: pune
|
|
|
|
suppose in an evaluate statement multiple true conditions are there..which one will get executed...
e.g
EVALUATE TRUE
WHEN (TIB1(WS-INDEX)= SPACES)
MOVE WS-GAIND TO TIB1(WS-INDEX)
WHEN (TIB2(WS-INDEX)= SPACES)
MOVE WS-GAIND TO TIB2(WS-INDEX)
WHEN (TIB3(WS-INDEX)= SPACES)
MOVE WS-GAIND TO TIB3(WS-INDEX)
WHEN (TIB(WS-INDEX)= SPACES)
MOVE WS-GAIND TO TIB4(WS-INDEX)
END-EVALUATE
IF TIB3 AND TIB4 ARE SPACES WHERE WILL GAIND BE PASSED |
|
Back to top |
|
|
Pollyannaish
New User
Joined: 09 Jul 2005 Posts: 31 Location: Pune, India
|
|
|
|
Hi
The first statement in the drop down menu which is true would be executed...
In your case as stated above
WHEN (TIB3(WS-INDEX)= SPACES)
MOVE WS-GAIND TO TIB3(WS-INDEX)
will be true before
WHEN (TIB(WS-INDEX)= SPACES)
MOVE WS-GAIND TO TIB4(WS-INDEX)
thus WS-GAIND will be passed to TIB3(WS-INDEX)
I hope this helps.. |
|
Back to top |
|
|
kousalya26
New User
Joined: 06 Jul 2005 Posts: 21 Location: chennai
|
|
|
|
HI,
From the manual,
Quote: |
The execution of the EVALUATE statement ends when:
The statements associated with the selected WHEN phrase are performed.
The statements associated with the WHEN OTHER phrase are performed.
No WHEN conditions are satisfied. |
So the statement(s) following the first when condition which is satisfied will be executed and after that it goes to teh scope terminator.
Thanks & Regards,
kousalya |
|
Back to top |
|
|
small_world
New User
Joined: 22 Jul 2005 Posts: 24 Location: pune
|
|
|
|
thanks guys |
|
Back to top |
|
|
|