How to use CASE Statement In Microsoft Dynamics Navision.

For understanding the use of CASE statement in NAV , show below example.

VehicleType:=VehicleType::CAR;
CASE VehicleType OF
  VehicleType::CAR:
  BEGIN
    MESSAGE('You Select CAR');
  END;
  VehicleType::BUS:
  BEGIN
    MESSAGE('You Select BUS');
  END;
  VehicleType::TRUCK:
  BEGIN
      MESSAGE('You Select TRUCK');
  END;
END;



OUTPUT: 




Comments

Popular posts from this blog

How to use serial.write() in Arduino.

How to Generate random rows in dataset using c#.net

How to use Format function in Microsoft Dynamics Navision.