NEW IN 4D V14 R5

warning: file_get_contents(http://www.telize.com/geoip/ [function.file-get-contents]: failed to open stream: HTTP request failed! in /var/www/www.4d.com/docs/includes/common.inc(1762) : eval()'d code on line 4.


For customers with a 4D Maintenance contract and 4D Partners, the current R-release is available for free download and you have received an email with the link from ISIS SA.





4D Write Pro

4D v14 R5 includes the very first step of 4D Write Pro, delivered as a technical preview. 4D Write Pro is the successor to the 4D Write plug-in. 4D Write Pro is no longer a plug-in but is fully integrated into 4D itself, making it easier to deploy and manage. It uses the same license as 4D Write, coming at no additional cost.


4D Write Pro v14 R5 features

This first version focuses on two main topics: Document compatibility & HTML email.


From a programming capabilities point of view, over 50 4D commands are already supported (Object & Styled Text commands). New commands are also available to create, import and export a 4D Write Pro document.
The SMTP_QuickSend command has also been improved in 4D v14 R5 so that 4D Write Pro areas can be sent as HTML emails.

Learn more about SMTP_QuickSend below.


4D Write Pro - email 



Watch this video to see how to import and format an existing 4D Write document with 4D Write Pro:


Is this what 4D Write Pro will be in its final form?

4D Write Pro is a major development for 4D, so we will take full advantage of the R-release program to deliver it on a step by step basis. With each step, both the feature set and the programming capabilities will be improved.

Download the “How Do I” database to evaluate yourself the features already implemented in 4D Write Pro v14 R5. This example also allows you to test the conversion of your documents.


Download example database


Path to a full 64-bit 4D product line

4D Server 64-bit Mac has achieved production-level quality but we have decided to maintain its "Preview" label for 4D v14 R5 because of the major changes that have been made in the new network layer, which is mandatory for the 64-bit version on OS X.

64-bit evolution


The list of plug-ins ready for 64-bit has expanded with 4D v14 R5:

  • 4D Internet Commands
  • 4D Pack (new in 4D v15 R5)



New network layer

The network stack has been completely rewritten, used to communicate between 4D Server and Remote, as well as in commands such as HTTP client. This redesign is an investment in the future, making optimizations and further evolution possible.


For compatibility reasons and for expanded testing, 4D will ship with both the old and the new network stack for the time being (except in the 64-bit OS X product line), making it possible to switch between them based on user interface or programming language.


This feature is currently available as a technical preview in 4D v14 R5.





Analysis and optimization

Originally introduced in 4D v14 R3, the Get database measures command has been improved for 4D v14 R5.


The command can now return new information regarding index usage, queries and sorts.  Furthermore, you now have the means to analyze and optimize the internal configuration of your database.


For example, for an index, a high number of "insertKeyCount" items and a low number of "queryCount" and "sortCount" items may indicate that and index is unnecessary.


A tech note on this topic is available for direct download by Partners: http://kb.4d.com/assetid=77198 


Get database measures



Download example database


Form objects and events

Long names for form objects

As of 4D v14 R5, you will be able to define object names up to 255 bytes for all form objects available in the form editor. You no longer need to be concerned about object name length when applying your naming rules/convention (e.g. using a name like xxxx_Button). You can use generic code like OBJECT SET VISIBLE(*;"@_Button";False) to hide several buttons at once.




Get the display coordinates of a listbox object



The OBJECT GET COORDINATES command can now return the coordinates of the listbox reference frame for any listbox sub-object, i.e. columns, headers or footers, in addition to the listbox object itself.


The new command LISTBOX GET CELL COORDINATES does the same for any listbox cell. For example, it gives you the ability to draw a rectangle to display the current selection from a column when clicking on the header, with correct handling of scrolling.



Download example database


Click count

In the context of a mouseclick event, this function returns the number of times the user has clicked the same mouse button in quick succession (for example, 2 for a double-click).


Download example database


User interface

SVG filters with Direct2D on Windows

The SVG_Filter_Blend, SVG_Filter_Blur and SVG_Filter_Offset commands are now supported on Windows with Direct2D enabled in graphic software context.



Download example database


Toolbar form window type

This new window type gives you the ability to design more flexible toolbars compared to the old application toolbar.



Toolbar window type



Optimizations and improvements



+ Security improvements

Security for client-server communication has been improved: Weak cipher list suites have been removed and certificate key length has been increased.


NOTE: It is now possible to use your own encryption key for your secured client-server communications.




+ SQL performance improvement

The SQL GROUP BY/ORDER BY  commands now make it about ten times faster to run a Select statement using Group by for single tables, but also for more complex cases, like joined tables.


+ 4D Internet Commands

You can now send Send MIME HTML using SMTP_QuickSend.

The SMTP_QuickSend command now allows you to send messages with or without the SSL/TLS protocol using the MIME HTML format, which is a Web page archive format that can merge the HTML code as well as external resources such as images into a single document. This allows you to directly send 4D Write Pro areas as HTML emails!


+ Plug-in SDK

4D plug-in developers now have easier resource management of 4D dialogs.

For additional details about the 4D Plug-in toolbox, please look at the plug-in developer reference Web site.


+ Activate 4D Web server cache by default

The 4D Web server cache will be set by default for any new database created.



Available now

All of these features are tested and production-ready (with the exception of 4D Write Pro and 64-bit features in preview) and immediately available in 4D v14 R5.

Learn more about R-releases here.