Tips

Tips & Tricks for your 4D Apps – January 2023 Edition

by Add Komoncharoensiri, Director of Technical Services at 4D Inc

 

Here we go with another set of tips and tricks.

The 4D Knowledge Base is a library of information about 4D technology where weekly tech tips and monthly tech notes are actively published. If you missed the last tips on the KB, that’s fine; here is a compilation from the past few weeks.

This blog post covers 25 tips:

Product

Improved productivity with Object check syntax

Auto-completion for classes is available since 4D v18 R4. This feature simplifies code writing and limits errors in function names, for example. But it doesn’t avoid them entirely; it’s easy to reverse two letters or to forget a capital letter, and then have to spend time looking for why your code doesn’t work.

So what better way than to ask 4D to check if the classes or functions already exist?

Starting with 4D v19 R4, a warning is displayed in the code editor if you call a function that does not exist.

News

4D v19 R4 Beta starts today

Yet another release, but not just any other release ?

We’re thrilled to announce the launch of beta testing for 4D v19 R4, which incorporates many features you requested, plus features we believe will be delightful to use!

Without further ado, let’s take a look and see what it has in store for you:

 

  • Upon your request, we supported high-resolution displays, such as 4K displays, in Windows. This results in better text and image quality.
  • Another highly requested feature is at your disposal, the possibility to launch an external process asynchronously to enhance your users’ experience. 
  • What about pessimistic lock management via REST? YES, we have that too.
  • As for the 4D language, we couldn’t be more excited to share the many improvements we made available with you to elevate your coding experience.
  • 4D Write Pro is embracing the dark (mode)! And enabling you to add page breaks inside table rows.  
  • Speed up your development process with 4D View Pro “templates.”
  • The code editor has its share of features. For example, comment tags, quick access to different class functions, and syntax error checking.
  • And much more (see below)!