Simplify Variable Declarations & Assignments in a Single Line
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 st...
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 st...
In your code, objects and collections can be instantiated using New object and New collection commands. However, starting from 4D v20, a more conveni...
While Reals are known to be unprecise, they are 100% accurate even for very large numbers, as long as they do not use a decimal point (=integers). N...
Do you dream of using short-circuit evaluation, ternary operators, breaking free from a loop, or exiting from a method with a simple keyword? Well, d...
A method or function can have optional parameters. Sometimes the function is called with two parameters, and other times with three parameters. We've ...
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 b...
Using $1, $2, and $n variables in your code not only makes the code less readable, it can also increase confusion since the human brain can find it di...
Have you ever wondered about 4D's autocompletion feature or asked yourself why 4D suggests all functions used in the code? Since an object is a very g...
Sometimes you want to write code being able to work with different variable types, this is especially true for generic coding. Using pointers can make...
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