To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

C/AL (Client/server Application Language) was the programming language used within C/SIDE the Client/Server Integrated Development Environment in Microsoft Dynamics NAV (Formerly known as Navision Attain) and Microsoft Dynamics 365 Business Central up until (and including) version 14. It has been replaced by AL. C/AL is a Database specific programming language, and is primarily used for retrieving, inserting and modifying records in a Navision database. C/AL resembles the Pascal language on which it is based. The original C/AL compiler was written by Michael Nielsen.[1]

YouTube Encyclopedic

  • 1/5
    Views:
    5 643
    6 055
    222 921
    46 790
    15 443
  • Retrieving data using FIND in Dynamics NAV - Write C/AL code to find record from a Table in NAV
  • Using Advanced Filter in Dynamics NAV - Write C/AL code for filter record from a Table in NAV
  • Ellen C. - Family Recovery Speaker - "Changing my attitude, changing my life" (Funny!)
  • Al-Anon Speaker Kyrie C.
  • How to Balance Al2O3 + C = Al + CO2 (Aluminum oxide + Carbon)

Transcription

Examples

Hello World

This is the classic Hello World example. Since the C/SIDE (Client/Server Integrated Development Environment) does not have a console to output text, this example is made using a dialog box as the visual interface.

MESSAGE('hello, world!');

Filtering and retrieving record

Variables in C/AL are not defined through code, but are defined via the variable declaration menu in the C/AL editor. In this example Item is assumed to be a variable of type Record.

IF Item.GET('31260210') THEN
  MESSAGE(STRSUBSTNO('Item name is: %1',Item.Description));

Item.RESET;
Item.SETRANGE("No.",FromItem,ToItem);
Item.FINDLAST;

Looping and data manipulation

Looping over a recordset and modifying the individual records is achieved with only a few lines of code.

Item.RESET;
Item.SETRANGE("Blocked",TRUE);
IF Item.FINDSET THEN
  REPEAT
    IF Item."Profit %" < 20 THEN BEGIN
      Item."Profit %" := 20;
      Item.MODIFY(TRUE);
    END;
  UNTIL Item.NEXT = 0;
Item.MODIFYALL("Blocked",FALSE);

See also

References

  1. ^ Studebaker, David, "Programming Microsoft Dynamics NAV 2009," p. 8 (2009)

External links


This page was last edited on 27 March 2024, at 01:04
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.