Correction guide - Compiler warnings

The following is based on material kindly provided by Michael Fruergaard Pontoppidan. I have edited it substantially and added some new material to make it fit within the context of this blog. Introduction This guide will show you how to resolve compiler warnings in Axapta. Compiler warnings are a strong indication that the code contains…

4

Getting rid of the "Loss of precision" warning message

A question came up at today’s webinar where a developer had a (presumably legitimate) reason to cast a real value into an integer value. The X++ language does not allow explicit casting (there’s no support for it in the language), but the compiler will do its best to satisfy the user and do the conversion on…

1