C/AL
C/AL[edit]
C/AL (Client/Server Application Language) is a programming language used in Microsoft Dynamics NAV, a business management solution for small and medium-sized enterprises. C/AL is primarily used for developing the business logic of the application, allowing developers to customize and extend the functionality of Dynamics NAV.
History[edit]
C/AL was introduced with the release of the Navision product, which was later acquired by Microsoft in 2002. The language has evolved over time, with significant updates aligning with new versions of Dynamics NAV. In recent years, C/AL has been gradually replaced by AL, a more modern language used in Microsoft Dynamics 365 Business Central.
Syntax and Structure[edit]
C/AL is a procedural language that is similar in syntax to Pascal. It is designed to be easy to read and write, with a focus on business logic rather than low-level programming constructs.
Basic Structure[edit]
A typical C/AL program consists of:
- Variables: Used to store data values.
- Functions: Blocks of code that perform specific tasks.
- Triggers: Special functions that are automatically executed in response to certain events.
Example[edit]
Below is a simple example of a C/AL function:
```c PROCEDURE CalculateTotal@1(VAR SalesLine@2 : Record 37); VAR
TotalAmount@3 : Decimal;
BEGIN
TotalAmount := SalesLine.Quantity * SalesLine.UnitPrice;
MESSAGE('The total amount is %1', TotalAmount);
END; ```
Development Environment[edit]
C/AL development is typically done within the C/SIDE (Client/Server Integrated Development Environment), which provides tools for writing, testing, and debugging C/AL code. C/SIDE is integrated into the Dynamics NAV environment, allowing developers to work directly with the application's data and objects.
Transition to AL[edit]
With the introduction of Microsoft Dynamics 365 Business Central, Microsoft has shifted from C/AL to AL, a language that is more aligned with modern development practices. AL is used in conjunction with the Visual Studio Code editor and offers better integration with source control systems and cloud-based deployment.
See Also[edit]
References[edit]
- C/AL Documentation on Microsoft Docs
- AL Language Documentation
Sponsored Health Resource

W8MD Weight Loss, Sleep & MedSpa
Looking for physician-supervised weight loss, semaglutide, tirzepatide, or GLP-1 receptor agonist options? W8MD helps eligible patients in New York City, Brooklyn, New Jersey, Connecticut, Pennsylvania, Delaware, and greater Philadelphia with medical weight loss, sleep medicine, and long-term maintenance support.
GLP-1 specials: Affordable GLP-1 injections NYC and Philadelphia starting from $29.99/week and up for semaglutide with insurance accepted for qualifying visits, and $45/week and up for tirzepatide with insurance accepted for qualifying visits. Self-pay options start from $59.99/week and up for semaglutide and $69.99/week and up for tirzepatide.
- Medical weight loss NYC
- Affordable GLP-1 injections NYC
- Budget GLP-1 weight loss shots Philadelphia
- New Jersey medical weight loss
- NYC medical weight loss blog
- Philadelphia weight loss blog
- Sleep medicine and sleep apnea services
- W8MD MedSpa and wellness
Book a W8MD appointment · View GLP-1 specials
Paid promotional message. Eligibility, pricing, insurance coverage, medication availability, and results vary. Medical evaluation required.
Medical Disclaimer: WikiMD is for informational purposes only and is not a substitute for professional medical advice. Content may be inaccurate or outdated and should not be used for diagnosis or treatment. Always consult your healthcare provider for medical decisions. Verify information with trusted sources such as CDC.gov and NIH.gov. By using this site, you agree that WikiMD is not liable for any outcomes related to its content. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.
Translate page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian