Select/Case in Crystal Reports -


i'm trying have crystal reports run through select statement keeps on dropping out after hitting first match instead of continuing on through each case. how can evaluate each condition on it's own merits instead of automaticaly breaking after finding first match?

example

  local numbervar varnumber := 0;      select 7       case <= 1:          varnumber := varnumber + 1   //only gets here       case <= 2:          varnumber := varnumber + 1       case <= 3:          varnumber := varnumber + 1       case <= 4:          varnumber := varnumber + 1       case <= 5:          varnumber := varnumber + 1       case <= 6:          varnumber := varnumber + 1       case <= 7:          varnumber := varnumber + 1    end select 

varnumber value should 7 end of select statement each condition should have evaluated true, stops after hitting first case, resulting in varnumber being 1, have break statement tell stop falling through each case statement, isn't happening.

alternatively there way simulate functionality?

you can't using select case if wanted have construct multiple if statements or possibly loop.

what purpose of this? i'm not sure see point of function - appears return 7 time?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -