Tips

How to automate the compilation

Automatically translated from English

Since 4D v19, you can start the compilation of a project with a simple command. You might be wondering what you can use this for!

Your team may consist of several developers, so why not automate the compilation at each code push on your source control server? It is always easier to identify an error when it is quickly detected.

Another case is when your project consists of several components. You can write a method that compiles, builds, and then copies the component to the host database.

This blog will discuss the different technical points that are very useful to create your own automation tools, along with an example application.

Product

Show online documentation directly from the code editor

Automatically translated from English

In the latest versions of 4D, several improvements have been made to simplify the writing of code with classes:

  • function and attribute suggestions according to type
  • display of the prototype with a short description

 

With 4D v19 R2, you can open the online documentation of a function with a single action.

Product

Create a BLOB attribute in an object

Automatically translated from English

With the introduction of classes in the 4D environment, the need to store your data in objects, and especially blobs, has increased. That’s why 4D v19 R2 lets you encapsulate blobs in objects.

Beyond the storage aspect, since the blob object is a reference type, your performance in terms of memory occupation and speed will be greatly improved.

Product

Invisible Characters on Stage!

Automatically translated from English

Best practices in IT sometimes change, and the management of certain invisible characters in text files is one example. End of Line (EOL) characters have evolved, especially for version control systems integration purposes. In the same way, the Byte Order Mark (BOM) on Unicode text files is less and less used.

With 4D v19 R2, 4D has evolved smoothly to follow these best practices, giving you more flexibility along the way.

Product

gitignore and 4D: a useful feature for Git users

Automatically translated from English

Project mode allows you to easily track changes with Git, the most popular version control system. But often, you don’t want to track all the files of your project in the Git repository. 4D now offers you the possibility to define what not to track in your new projects.

Tips

4D View Pro: End of document loading

Automatically translated from English

When you use 4D View Pro (especially in offscreen mode) with complex documents, calculating all formulas could take a while and it can be difficult to know when it’s finally finished (and it’s important to wait before you call commands such as export or print).

As a solution, we’ve introduced two new events. One of which is called for every single calculation/formula, which could be used to trigger a timer. If the time expires without another formula being finished, we can assume that the whole document is finished.

Product

More enhancements to the 4D debugger!

Automatically translated from English

4D v18 R6 comes with new features in the code editor to make things easier for you when writing code.

The same goes for the debugger. We know debugging an application can be difficult, that’s why we never stop working to help make your experience better. This time, we’ve added some options and additional information that will make it easier to trace and analyze your code.

Keep reading to see what’s in store for you:

Product

4D Language – String comparison improvements

Automatically translated from English

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 been improved: Position. Both of these commands allow you to use options for more accurate results. Let’s learn more!

Product

4D View Pro: Find and replace with code

Automatically translated from English

Sometimes when you initialize a 4D View Pro document, you need to find some values or tags in it and replace them with data issued from 4D. Now it’s a breeze with the VP Find command. Thanks to this command, you can find data, a formula, or a tag and replace it in the entire sheet or only a specific part of it!

Let’s find out how.