CHAPTER 1 - Introduction to X++
CHAPTER 2 - X++ Control Statements
CHAPTER 3 - Objects and Classes
CHAPTER 4: Accessing the Database
CHAPTER 5: Exception Handling
CHAPTER 6: Security for Developers
Lesson 2 – Operators
Operators are used to manipulate variable and field values and to control the logical program flow based on the values in variables and fields. The following types of operators are available.
- Assignment operators modify the contents of a variable or field.
- Arithmeticoperator perform mathematical operations on the values in a variable or field.
- Relationaloperator evaluate how two values relate to one another and return either True or False according to the result.
- ExpressionOperator: Is and As for Inheritance
- Operator Precedence
In Microsoft Dynamics AX, the X++ language provides the as and is expressionoperator to control downcast assignments. Downcast assignments involve class or table inheritance.Assignment statements that implicitly downcast can cause errors that are hard for the programmer to predict or diagnose. You can use the as keyword to make your downcasts explicit. You can use the is keyword to test whether a downcast is valid at run time.
X++ is an object-oriented language with similarities to C#. X++ is part of the MorphX development platform that you use to construct accounting and business management systems.
The memory management model of X++ is simple. Objects are created with a new operator. There are no explicit programmer-defined pointer data types, and there is no pointer arithmetic.
X++ provides system classes for a broad range of system programming areas, a few of which are as follows:
- File input and output.
- Reflection on classes and tables.
- Manipulation of user interface items such as forms and reports.
- Dynamic array support.
- Collections of objects.
- XML building and parsing.
X++ programmers can access the relational tables in Microsoft Dynamics AX. X++ includes keywords that match most of the keywords in standard SQL. For information about X++ SQL keywords, see Data Selection and Manipulation and the table of contents underneath it.