4D Blog

Home Product Introducing Code Live Checker: Elevating Code Quality in 4D Development

Introducing Code Live Checker: Elevating Code Quality in 4D Development

January 19, 2024

Product

4D v20 R4 introduces the Code Live Checker, an algorithm used during Compilation, Syntax Checking, and code typing in the Code Editor. In this blog post, we’ll explore the unique aspects that make this feature useful for 4D developers.

In 4D development, classes are a big improvement.

Now, the Code Live Checker prevents mistakes like typos or logic errors. You can see this checking while you’re typing or during syntax checking and compilation. It’s important to know that this feature only works in classes that use dot notation.

It also gives you new warnings if your code appears inconsistent and creates errors if your code might cause runtime errors.

Classes

An error is generated when the name of a class used does not exist in the ds, cs, or 4D class-stores. This avoids typing errors, particularly those related to case.

Class functions

The Code Live Checker checks several things about class functions.

  • A warning is displayed if a parameter declaration is made outside the function prototype.

blank

  • Another warning is displayed when a non-existent class function is called.

blank

  • When calling a class function, a warning is generated if the number of parameters used exceeds those declared in the prototype.

blank

Types compatibility checking

A type check is now performed in several cases:

  • An error is now generated when assigning variables of incompatible types. This also applies to class properties, dataclass attributes, and dataclass computed attributes.

blank

  • When calling a class function, a warning is generated if the parameter types are incompatible.

blank

ORDA Dataclasses

The use of unknown dataclasses or dataclass attributes now generates an error. This avoids input errors that can generate runtime errors.

blank

CompoNEnts CLASSES

All the behaviors described for classes also apply to shared component classes if the component contains its syntax file.

blank

Notes

In the 4D code editor, the Code Live Checker is automatically triggered after one second when typing in a method, and when saving in a class.

The 4D compiler may add errors to the error list generated by the Code Live Checker. Unlike Code Live Checker errors, after they have been fixed, these compiler errors remain displayed until the project is compiled again or restarted.

We constantly strive to provide our users with the best possible experience, and we encourage you to share your thoughts and feedback on the 4D forum. Your feedback helps us better understand your needs and continuously improve our products and services.
Happy coding!

Discuss

Tags 21, Code editor, Compiler, v20 R4

Latest related posts

  • February 3, 2026

    4D Write Pro – Adding a margin automatically when bullets are set using standard actions

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

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

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