Say “Hello World” in AL for Visual Studio Code

The very first piece of AL Code for Visual Studio Code has just gone VIRAL! GitHub admins see above normal forking of this great branch. Check it out and see what our language of the future looks like!

Microsoft starts teasing us while we eagerly wait for the December PREVIEW.

// ---------------------------------------------------------------

// Copyright (c) Microsoft Corporation. All rights reserved.

// Licensed under the MIT License. See License.txt in the project root for license information.

// ---------------------------------------------------------------

// Codeunit for creating random greetings

codeunit 70051100 GreetingsManagement


    // Get a translated 'Hello World' string.

    // Thanks to

    local procedure GetHelloWorldText(GreetingNo : Integer) : Text;


        case GreetingNo of

            0:  exit('Afrikaans: Hallo wêreld');

            1:  exit('Arabic: مرحبا بالعالم');

            2:  exit('Bulgarian: Здравей, свят');

            3:  exit('Cantonese: 世界你好');

            4:  exit('Greek: Γεια σου κόσμε');

            5:  exit('Korean: 전 세계 여러분 안녕하세요');

            6:  exit('Thai: หวัดดีชาวโลก');

            7:  exit('Hindi: हैलो वर्ल्ड');

            8:  exit('Japanese: ハローワールド');


            exit('Hello, World'); // Default to the good old one.



    // Gets a random greeting.

    procedure GetRandomGreeting() : Text;






If you don’t know what I’m talking about. Get out from under your rock and see some daylight. Microsoft is moving the good old C/AL programming language to “AL” programming in Visual Studio Code with a new compiler.

I already have a whole series of blog posts about this ready since the new compiler has all capabilities to make my dream come true. Design Patterns as templates to be used just like C# templates. The compiler is crazy smart and will be the vehicle to make upgrading more predictable in the future.


As part of the NAV TechDays YouTube channel you can also see the session about the designer as well as the preview in the Keynotes.


For Readers

If you like reading more than watching, then go to the blog of Arend Jan.

Leave a Comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.