mbdave
25th August 2009, 15:58
Hi Guys,
The On case statement showed me some weird results in baan.
Can anybody throw light on it!
I had written On case statement as
on case temp.str
case tmp.str1:
hold = 1
break
case tmp.str2:
hold = 2
break
endcase
Now if my tmp.str1 and tmp.str2 are equall i.e. say tmp.str1 = tmp.str2 = "ABC"
If input temp.str = "ABC"
then the cursor directly goes to second case i.e it returns hold = 2
Currenctly for this reason i had replaced this "On case" with "IF" statement and its working fine.
Just want to know y its not going to first case.
The On case statement showed me some weird results in baan.
Can anybody throw light on it!
I had written On case statement as
on case temp.str
case tmp.str1:
hold = 1
break
case tmp.str2:
hold = 2
break
endcase
Now if my tmp.str1 and tmp.str2 are equall i.e. say tmp.str1 = tmp.str2 = "ABC"
If input temp.str = "ABC"
then the cursor directly goes to second case i.e it returns hold = 2
Currenctly for this reason i had replaced this "On case" with "IF" statement and its working fine.
Just want to know y its not going to first case.