I have a code block like this:
IF Customer.verdi<>0 THEN BEGIN
IF verdi IN [0,1..3,0] THEN range:=1 ELSE
IF verdi IN [3,1..4,0] THEN range:=2 ELSE
IF verdi IN [4,1..5,0] THEN range:=3 ELSE
IF verdi IN [5,1..20,9] THEN range:=4 ELSE
range:=5;
I compiles but does not work as planned. The field verdi is a decimal field.
We use comma as a decimal separator. Range is not set according to the
value of customer verdi.
Any tips - maybe a better way ?
0
Comments
RIS Plus, LLC
The decimal separator is . not , - , is value separator. It means your code have meaning
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.