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.
Quickly jump to different functions of a class
Classes were introduced with 4D v18 R3. They allow you to organize your business logic and separate it from the UI part more quickly.
Classes are composed of several functions of varying lengths, so it’s not always easy to find the function you want to modify, or to move from one function to another. You can use the explorer, which displays classes and functions, but when you’re coding in the editor window, you don’t want to waste time changing windows.
With 4D v19 R4, the list of functions in your class is displayed in the code editor toolbar, allowing you to easily jump to a specific function.
Simplified navigation between development windows
When writing a new function or method, or when creating a form, the work is never linear. We usually need to:
- access the explorer to find the form in its folder
- access the explorer to write the documentation for the method
- read the documentation of a command on the 4D documentation website
- read the documentation of a component’s method
In this new version, we have added some menu items in the code editor and form editor to allow you to better navigate between the different elements of a project.
Show online documentation directly from the code editor
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.