View previous topic :: View next topic |
Author |
Message |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Wed Nov 15, 2006 2:51 am Post subject: Evaluate within Evaluate |
|
|
hi ,
In my program, i need to code a evaluate within a Evaluate , but my question is , where do i give a " when Other " condition , in the outer or in the inner evaluate
ex :
Code: |
Evaluate var1 also var2
when 'a'
perform ..
when 'b'
perform ..
Evaluate var3
when 'c'
perform ...
when 'd'
perform ..
when other
perform parax
End-Evaluate
when other
perfrom paray
End-Evalaute.
|
What will happen if none of the when conditions are satisfied, will "parax "
or "paray" will be executed ? |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Nov 15, 2006 3:52 am Post subject: |
|
|
are you under the erroneous impression, that an 'ALSO' requires an evaluate within an evaluate.
the manual is pretty clear on how to code an evaluate. read it. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Wed Nov 15, 2006 4:04 am Post subject: |
|
|
hi ,
This is a existing code , and i need to know how "When Other" condition works
in this scenario, can someone pls help me with this ..
ganesh |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Nov 15, 2006 5:07 am Post subject: |
|
|
Code: |
Evaluate var1 also var2
when 'a'
perform ..
when 'b'
perform ..
Evaluate var3
when 'c'
perform ...
when 'd'
perform ..
when other
perform parax
End-Evaluate
when other
perfrom paray
End-Evalaute.
|
as they say, a picture is worth a thousand words. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Wed Nov 15, 2006 5:48 am Post subject: |
|
|
hi ,
Thanks for formatting the code, but letme know under what condition will
"parax" or "paray" will be executed |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Nov 15, 2006 6:34 am Post subject: |
|
|
when var1 and var2 are not equal to a or b then paray
when var1 and var2 are equal to b AND var3 not equal to c or d then parax _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12370 Topics: 75 Location: San Jose
|
Posted: Wed Nov 15, 2006 7:59 am Post subject: |
|
|
Quote: |
Thanks for formatting the code, but letme know under what condition will
"parax" or "paray" will be executed
|
gans79,
The code does NOT even compile as you the arguments you are trying to compare are less. You have 2 arguements on the evaluate stmt but your when stmt has one value to compare.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
|
Back to top |
|
|
|
|