Click to See Complete Forum and Search --> : The remaining text does not appear to be


patbucks
September 14th, 2006, 03:38 PM
I keep getting an error message when trying to do that:

global booleanVar passe := false ;

if ({OrderMenu.Qty} > 0.5 )then
round({OrderMenu.Qty} * round({OrderMenu.PriceMenu},3),2)
else


select passe
case false:
passe:= true; <-- If I remove this everything is fine....
round(2 * round({OrderMenu.PriceMenu},3),2)
case true:
round(0 * round({OrderMenu.PriceMenu},3),2)

I just don't know how to use properly assign a variable in Crystal..
Thanks a lot I have been looking for a while for a solution.

JaganEllis
September 14th, 2006, 09:08 PM
You're putting two statements under the 'case false:' without using brackets to contain them. Try this:

...
case false:
(
passe:= true; <-- If I remove this everything is fine....
round(2 * round({OrderMenu.PriceMenu},3),2)
)
case true:
...