Skip to content
4D Blog
  • 4D Product Extensions
    • 4D Product ExtensionsExplore blog posts featuring tools and modules to enhance and extend your 4D environment.
      • 4D AIKitInject semantic AI to interpret data and automate decisions.
      • 4D Qodly ProBuild and extend 4D applications to web visually.
      • 4D ComponentsManage and develop components with modern dependency control.
      • Email, Microsoft 365, GmailIntegrate authentication, email, and calendar in 4D applications.
      • 4D Write ProGenerate data-driven documents with the 4D word processor and integrated AI assistant.
      • 4D View ProVisualize data and manage spreadsheets effectively.
  • For Developers
    • For DevelopersBuild better 4D applications with practical patterns and technical deep dives from our blog.
      • ORDADesign clean data models using an object-oriented approach with Object Relational Data Access.
      • 4D LanguageMaster the 4D language to write clear, structured, and maintainable code.
      • Development ModeStructure projects and collaborate efficiently in team environments.
      • Code EditorDevelop faster and debug smarter using the 4D code editor and integrated tools.
      • User Interface / GUIEnhance your 4D user interfaces with elements like forms, lists, menus, and printing options.
  • For Admins
    • For AdminsOperate, deploy, and maintain 4D environments with control and predictability.
      • 4D ServerConfigure and manage 4D Server environments reliably.
      • MaintenanceMonitor, log, and maintain stable 4D environments.
      • DeploymentPackage, secure, and deploy 4D applications safely.
  • Learning Paths
    • Learning PathsOfficial guides, tutorials, videos, documentation, and repositories to accelerate your 4D learning journey.
      • Learn 4DStructured, hands-on tutorials hosted on Learn 4D, designed to guide you from beginner to advanced with interactive lessons.
      • What’s New in 4DExplore what’s new in the latest LTS release and see how it moves your applications forward.
      • 4D WebinarsExpert-led technical sessions exploring new features, architecture decisions, and real use cases in 4D development.
      • 4D DocumentationAccess the official technical reference for 4D.
      • 4D GitHub RepoExplore official 4D GitHub Repo.
      • 4D Knowledge BaseExplore a wealth of technical expertise through our Tech Notes and Tips.
  • DE
  • FR
  • PT
  • CS
  • ES
  • IT
  • JA
Home For Developers4D LanguageSyntax

Syntax

Syntax

21

v20 R3

  • 4
  • 0

Simplify Variable Declarations & Assignments in a Single Line

Starting with 4D v20 R3, you can wave goodbye to the days of writing multiple lines of code for variable declarations and assignments. Now, you can st...

Fabrice Mainguené
Fabrice Mainguené
October 20, 2023 1 min read

Language One-line declaration Programming

Syntax

v20

  • 7
  • 0

Object and Collection Literal Initializer

In your code, objects and collections can be instantiated using New object and New collection commands. However, starting from 4D v20, a more conveni...

Fabrice Mainguené
Fabrice Mainguené
April 26, 2023 1 min read

Language Programming

Syntax

v19 R6

v20

  • 4
  • 0

Support of larger integers than integer32

While Reals are known to be unprecise, they are 100% accurate even for very large numbers, as long as they do not use a decimal point (=integers).  N...

Vanessa Talbot
Vanessa Talbot
July 18, 2022 1 min read

Language Programming

Syntax

v19 R4

v20

  • 9
  • 0

4D language: The improvements you requested are here

Do you dream of using short-circuit evaluation, ternary operators, breaking free from a loop, or exiting from a method with a simple keyword? Well, d...

Fabrice Mainguené
Fabrice Mainguené
January 13, 2022 1 min read

Language Programming

Syntax

v19 R3

v20

  • 12
  • 0

Stop press! Accessing parameters not being passed is … possible

A method or function can have optional parameters. Sometimes the function is called with two parameters, and other times with three parameters. We've ...

Vanessa Talbot
Vanessa Talbot
October 4, 2021 1 min read

Language Programming

Syntax

v18 R6

v19

  • 4
  • 0

4D Language – String comparison improvements

The 4D language offers 20+ commands to handle strings. And with 4D v18 R6, 4D introduces a new command: Compare strings. And yet another command has b...

Roland Lannuzel
Roland Lannuzel
January 25, 2021 1 min read

Language Programming

Syntax

v18 R5

v19

  • 13
  • 0

Coder-friendly syntax for class functions and methods

Using $1, $2, and $n variables in your code not only makes the code less readable, it can also increase confusion since the human brain can find it di...

Vanessa Talbot
Vanessa Talbot
October 23, 2020 1 min read

Class Code editor Language Programming Project

Syntax

v18 R4

v19

  • 17
  • 0

New declaration syntax for an intuitive autocompletion

Have you ever wondered about 4D's autocompletion feature or asked yourself why 4D suggests all functions used in the code? Since an object is a very g...

Vanessa Talbot
Vanessa Talbot
August 5, 2020 1 min read

Code editor Language Programming User Experience

Syntax

v18

  • 9
  • 0

C_VARIANT to store different type of values

Sometimes you want to write code being able to work with different variable types, this is especially true for generic coding. Using pointers can make...

Fabrice Mainguené
Fabrice Mainguené
November 14, 2019 1 min read

Language Programming

Page 2 of 2
  • ←
  • 1
  • 2

Categories

  • Release infos
  • Generic
  • User Interface
  • Back End
  • Tutorial
  • 4D AIKit
  • 4D Components
  • 4D View Pro
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • 4D Qodly Pro
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Tutorials
  • 4D Summit sessions and other online videos
  • 4D Server
  • Maintenance
  • Deployment
  • News & Insights
  • Generic
Subscribe to our newsletter

© 2026 4D SAS. All rights reserved.

  • Terms & Conditions
  • Legal Notice
  • Data Policy
  • Cookie policy
  • Product License
  • Cookies Preferences

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy

Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy