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 get column value from the selected row in data grid in wpf c#.net

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.