views:

400

answers:

1
  case i of
         0..99  :   Function-call('bobo') ;
         100..209 : function-smell('Hobo');
         210..300 : function-yikes('argh');
       end;

But what if I wanted 210..300 to call both function yikes and function smell? Can't figure out how thanks.

+11  A: 

Just add a begin end block:

case i of
  0..99    : function-call('bobo') ;
  100..209 : function-smell('Hobo');
  210..300 : begin
    function-yikes('argh');
    function-smell('Hobo');
  end;
end;
Gamecat