4D Blog

Home Tag: language
Product
Fabrice Mainguené
Fabrice Mainguené

Better Error Handling and Type Inference for 4D Developers

January 20, 2026

When you’re coding in 4D or VS Code, clear and precise feedback from the editor makes all the difference. It helps you understand what’s happening in your code, fix issues faster, and keep your focus on building great features.

Starting with 4D v21 R2, we’ve improved the check syntax of the code editor to make error detection and type inference more accurate and consistent in both 4D and VS Code.

Read more

1
Product
Fabrice Mainguené
Fabrice Mainguené
blank

Trim, Trim start, and Trim end in 4D

October 17, 2025

When working with user input, data cleaning, or text formatting, one of the most common tasks is removing unwanted whitespace. Whether it’s a space accidentally typed before an email address or a newline character left at the end of a copy-paste, these seemingly invisible characters can cause unexpected behavior in your applications.
Fortunately, 4D 21 provides easy-to-use string methods to help: Trim, Trim start, Trim end.

Read more

2
Product
Fabrice Mainguené
Fabrice Mainguené
blank

Convert Numbers with Ease: Enhanced String and Num Commands

October 17, 2025

When working with different numeric bases, such as binary or hexadecimal, converting between numbers and strings is a common task. With 4D 21, the String and Num commands have been enhanced to make these conversions more powerful.

Read more

2
Product
Roland Lannuzel
Roland Lannuzel
blank

Easy Reference Comparison of Objects & Collections

July 18, 2024

Objects have become an essential part of the 4D language and of Qodly.

But when you declare a variable of this type, you define a reference. So, how do you know if two objects are, in fact, just one and share the same reference?

Starting with 4D 20 R6, comparing object references is simple: enter the = and # operators!

This blog post explores these operators and how they help determine if objects share the same reference. Let’s find out more!

Read more

2
Product
Fabrice Mainguené
Fabrice Mainguené
blank

Using Classes Across Components

July 17, 2024

Component developers frequently require the utilization of a class from another existing component.

With 4D 20 R6, when a component has a declared namespace, its classes are now accessible to all components loaded in the host project via cs.namespace.

Read more

3
Product
Fabrice Mainguené
Fabrice Mainguené
blank

Class property declarations and assignments on a single line

May 7, 2024

In 4D 20 R5, the streamlined property declaration now offers the convenience of initializing properties simultaneously with their declaration, akin to variable assignment.

This enhancement simplifies code readability and efficiency by allowing developers to declare and initialize properties in a single line. This facilitates smoother integration and reduces the need for separate initialization blocks. It optimizes development workflows and ensures code robustness across compilers and interpreters, promoting cleaner, more maintainable codebases.

Read more

3
Product
Avatar
Damien Fuzeau
blank

Streamlined Method Parameter Declarations

January 18, 2024

In the pursuit of efficient coding practices, 4D developers commonly configure compilation path settings to enhance syntax and typing checks, thereby minimizing errors during code execution in compile mode. Let’s see how #DECLARE method prototypes will gain time and code security.

Read more

6
Product
Fabrice Mainguené
Fabrice Mainguené
blank

A Fresh Approach to Writing Variadic Functions

October 23, 2023

Many of you are familiar with using methods or functions that can accept an unspecified number of parameters, often referred to as variadic functions.

In our ongoing process to improve your development experience, 4D v20 R3 streamlined the declaration of these methods by introducing ellipsis, making your code more straightforward and easier to work with.

Read more

6
Product
Fabrice Mainguené
Fabrice Mainguené
blank

Simplify Variable Declarations & Assignments in a Single Line

October 20, 2023

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 streamline your code, eliminate redundancy, and easily boost efficiency.

Here is how!

Read more

4
Product
Roland Lannuzel
Roland Lannuzel
blank

Meet the Updated Print form & FORM LOAD Commands

April 28, 2023

4D v16 R5 brought a significant improvement to the DIALOG command. An improvement that lays in the possibility of passing a new parameter “formData” of type object. It was great to hear that this new addition has been well received by 4D developers.

With 4D v20, two other commands are upgraded, Print form and FORM LOAD! The benefit will be just as great. The object’s content passed in the parameter will be directly exploitable in the printed forms or forms loaded in memory.

Read more

4
Page 1 of 3
  • 1
  • 2
  • 3
  • →
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • Release infos
  • 4D View Pro
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Qodly Pro
  • 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 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google 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 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google 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