warning: file_get_contents( [function.file-get-contents]: failed to open stream: HTTP request failed! in /var/www/ : eval()'d code on line 4.

4D SQL Code Samples

This example database demonstrates the possibility of carrying out queries thanks to the 4D language as well as using the SQL language.


Specific examples show both languages in parallel so that they can be compared easily and in order to highlight their respective advantages.


Comments and explanations are provided during the execution of these queries.


Download for Windows and Mac

4D Pop Collection

4D Pop is a series of productivity components grouped into a toolbar that integrates perfectly with the 4D development environment. Filled with clever tools and immediately useful for developers, 4D Pop has many advantages.
4D Pop

A Mind for Productivity

Every 4D Pop component is a handy little nugget you’ll wonder how you ever did without. Created by 4D developers for 4D developers, they’ll help you save precious time on repetitive operations, be the little helpers you always dreamt of having, and put an even friendlier face on your development environment.


4D v12: Solid foundations, brilliant new features

Thu, 10/28/2010 - 12:00

Read about all that's new in 4D v12.

Flash Your Charts

This example demonstrates 4D's ability to use external PHP libraries to add functionality to any application.

In this case, we use PHP and Flash to illustrate and animate charts based upon 4D data.


Download for Windows or Mac 


Getters and Setters: The OBJECT Set title command

Thu, 07/22/2010 - 15:37

See one of 4D v12's Getters and Setters commands in action, turning static text virtually dynamic!

Global Find and Replace

Mon, 07/19/2010 - 11:13

4D v12's powerful new Find and Replace allows you to search for practically anything in your design environment, and to rename or replace it throughout your entire application.

Global Find and Replace

A powerful, application-wide search and replace tool lets you find any item in the design environment.

Searches can be broad (any object, text, by “contains,” etc.) or more restrictive (search a specific constant using the full name), and 4D v12's Find dialog is intuitive and easy to use.

More search options

SVG Goodies

The SVG Goodies application offers several methods that take advantage of 4D's integrated SVG image capabilities.

These methods include image rotation, creating reflections, and more, and can be used in your own projects freely.


Download for Windows or Mac

Rich Text

New for 4D v12, text within a Text Area, List Box, variable, alpha field, etc., can have multiple styles applied.


Text styles include font, size, style (i.e. bold, italics), text color and (under Windows) background color.


Style properties can be stored with the text itself, as HTML-style <SPAN> tags, and support both Setters and Getters.


Picture Metadata

As images have become more prominent in computing, so has their accompanying metadata.

Popular image processing applications like Photoshop, Aperture, iPhoto, etc. and sites like Flickr and Picasa use metadata to help classify and organize images.

4D v12 supports image metadata standards in the form of EXIF, GPS, IPTC and TIFF, all of whose properties can be read and written by new SET and GET functions.