Friday 7 July 2023

Programming Language in D365

 

X++

 

·       X++ is the primary programming language used in D365.

·       X++ resembles other object oriented languages such as C# and java. It provides clean and efficient object programming.

·       X++ includes predefined integrated SQL commands

·       Programmers use X++ for accessing Microsoft dynamics Ax system classes that provide functionality ranging from basic I/O.

 

Characteristics

·       Reliable: X++ provides extensive compile time checking, followed by a second level on run time checking.

·       Interpreted and Dynamic: Benefits from faster developments cycles – prototyping, experimentation, rapid development.

·       Interoperable: Component in Microsoft D365 are seamlessly available any application supporting. .Net and conversely x++ is able to consume external managed code and COM (component object model) objects.

 

Complier:

Compiler is the translation program that converts X++ into a language that can be interpreted (machine language).

Debugger:

D365 includes a powerful standalone debugging tool for X++ code.
Debuggers is used to:

·       Run a program to certain point and then stop at a certain breakpoint.

·       Step through the program one statement at a time.

·       Display the call stack with ode line number.

·       Watch specific variables and modify their values during execution


Breakpoint:

Breakpoint are the set of individual’s line of code. This is the command to stop program execution at that point and enter debug mode.


Variables:

Variables hold data when a block of code is executed. Use a semicolon after each declaration.

 

Assignment Operators

=               Assign the value to a variable.

=+            Increment the value on the left by the value on the right

++            Increment the value by 1.

-=             Decrement the value on left by the value on the right.

--              Decrement the value by 1.

 

Athematic Operator:

+                 Plus

-                  Minus

*                  Multiply

/                  Divide

DIV              Integer division

!                   Not

&                 Binary AND

|                   Binary OR

<<               Left shift

>>               Right shift

?                  Ternary operator

 

Relational Operator:

==                Equal

>=                Greater than or equal

<=                Less than or equal

>                   Greater than

<                   Less than

!=                  Not equal

&&                And

||                    OR

 

No comments:

Post a Comment

Data Entities in D365 FnO

  Data management - Data entities ·        Data entity is a conceptual abstraction and encapsulation of one of more underlying tables. ...