4D Blog

Home Tag: programming
Product
Roland Lannuzel
Roland Lannuzel

Tailored Customization for Dates and Times

January 24, 2024

The manipulation of dates and times often requires specific formatting for various representations based on 4D’s internal resources or operating system settings.

While the default formats are usually all you need, there are scenarios in which custom formatting is essential, particularly for different geographical locations or unique requirements. In 4D v20 R4, significant advances have been made to meet this precise need

Read more

3
Product
Fabrice Mainguené
Fabrice Mainguené

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é

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
Nicolas Brachfogel
Nicolas Brachfogel

Deprecation of PHP Commands & Removal of 4D Built-in PHP Interpreter

October 19, 2023

PHP has played a crucial role in web development, and it was introduced into 4D v12 to offer features not readily available in the native language, such as zip, hash, or LDAP functionality. Over time, 4D has incorporated many of these PHP features into its core functionality. As a result, we decided to remove the built-in PHP interpreter in 4D v20 R3 and begin the deprecation process for PHP commands in v21.

While we won’t entirely remove the PHP commands from 4D, we strongly encourage you to use the system workers to execute PHP code in the future.

This blog post will guide you through this transition process, demonstrating how to use an external interpreter through PHP Execute and explaining how to execute PHP code effectively with a system worker. 

Read more

1
Product
David Azancot
David Azancot

Track data changes in your database

October 18, 2023

In this blog post, we’re thrilled to introduce a powerful method to revolutionize how you manage and track changes within your data store. We’ll unveil the concept of a “stamp”, a specialized marker designed to streamline your data modification monitoring and show you how to tailor these stamps to your unique requirements.

 

Read more

3
Product
Vanessa Talbot
Vanessa Talbot

Sync Several Collections with this new Function

October 18, 2023

4D offers powerful features to work with object collections. For example, you can create a collection of cities with their associated countries and continents. Manipulating these collections with built-in functions like sort, order, and filter becomes a breeze.

4D v20 R3 introduces the new multiSort() function to simplify this process. With this function, you can now easily sort and synchronize multiple collections.

Read more

3
Product
Avatar
Marie-Sophie Landrieu-Yvert

Enhanced Error Management in 4D Code

July 20, 2023

Throwing errors in your 4D code is now possible starting from v20R2.

Those errors behave as any 4D error: they trigger an error dialog or can be handled in an ON ERR CALL method.

This feature will ease your life because you’ll be able to improve the quality of your code by proactively detecting errors as soon as they occur. You can also handle better error logging.

Before digging into details, It’s important to note that this feature is the first step towards achieving robust error management.

Now, let’s dig into the details!

Read more

2
Product
Nicolas Brachfogel
Nicolas Brachfogel

Declaring Class Properties

May 31, 2023

The 4D language is constantly improving. For v20, we bring you a new feature that will ease the use of your classes: declared class properties. Declaring your class properties will significantly improve autocomplete and give you meaningful errors when compiling. Do you want to know more about it? Let me show you how it works!

Read more

5
Product
Vanessa Talbot
Vanessa Talbot

Build an Application with 4D Commands

April 29, 2023

Since several versions of 4D, different features have been added to create your own build chain. For example,

  • the creation of a “.zip” folder,
  • the addition of information such as the copyright on an executable or a “dll”,
  • the creation of an “info.plist” file,
  • and the new build4D component.

 

With 4D v20, two new features allow finalizing the creation of a standalone or client/server application in 4D code:

  • the addition of an icon to an executable
  • the generation of the deployment license file for a server (OEM license only) or a standalone application.

Read more

8
Product
Vanessa Talbot
Vanessa Talbot

Meet the Improved Distinct Function

April 26, 2023

Retrieving the list of unique data elements is always helpful when manipulating data. In some cases, retrieving the number of occurrences of each value is essential. The distinct function of the Collection and Entity selection classes allows retrieving a list of unique values. With 4D v20, you can also retrieve the number of occurrences of each distinct value.

And that’s not all!

An object in the database can be used to save custom data entered by the user. So on the code side, you need to know all the possible paths to the object. The distinctPaths function has been added to the Entity selection class.

Here is everything you need to know.

Read more

8
Page 3 of 20
  • ←
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • Last
  • →
  • 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 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 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 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 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