Product

OB New: an easy way to initialize an object

Discover OB New, the new command of 4D to initialize an object. This command allows you to either create an empty object or create it with some initial properties and values. OB SET is now becoming unnecessary in several situations, OB New is enough.

OB New also allows to re-initialize an temporary object in a loop or simply directly pass an object as a parameter to a 4D command requesting an object as parameter, as Get database measures or GRAPH commands for instance.

This new command changes your way to write 4D code in many situations. OB New creates an object and returns a reference to it. It allows more flexibility in your code. This command is the first of a series of new features related to  objects … Stay tuned !

Product 4D Write Pro Standard action

Create your own interface for 4D Write Pro

You want to quickly create a menu bar to manage your 4D Write Pro areas? You want to create your own contextual menu for your end-users ? You would like to create a color mosaic to change the document background? So this feature is made for you – and better, you do not even need to write a single line of code…

We added standard actions to handle 4D Write Pro areas. They can be defined at design phase or by programming. More than 80+ actions are available and to name just some of them: Font style (bold, italic, underline), Font color, Background color, Text alignment (left, center, right, justify…), Borders (style, color, width, radius…), Spellchecker actions…

Something important to notice, when assigned to interface objects, standard actions automatically handle the activation/disabling of the object depending on the context. Easy!

News

4D v16 R3 beta test starts today!

I am pleased to announce that the beta testing of 4D v16 R3 starts today! So what are the new features available in 4D v16 R3 beta?

New perspectives using standard actions

4D v16 R3 is bringing wider possibilities using the standard actions mechanism. As a reminder, standard actions – such as First Record (existing) or color?value=red (new) – can be assigned to a button or a menu item in the user interface or by programming. A benefit is that 4D also automatically handles the menu item deactivation whenever the action is not applicable.

New commands to handle actions

Using INVOKE ACTION, you can trigger any standard action, optionally in the target context. To know if the standard action is applicable and valid in the current context, you can use the Get action info new command.