BLOGS

EXAMPLE APPLICATIONS

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

Unicode Support

This example demonstrates 4D's ability to display Unicode characters.

It also shows the conversion of characters when using the Uppercase and Lowercase functions, as well as 4D's capacity to convert from one standard to another (i.e. ISO-8859-1 to UTF16) via intermediary BLOBs.

 

Download for Windows or Mac

 

Integrated, Native SQL

4D's database engine and development environment feature integrated, native SQL.

The 4D language allows you to connect directly to an ODBC data source and to execute SQL queries inside  "Begin SQL" and "End SQL" tags (and via the new 4D command: QUERY BY SQL).


This database shows how to carry out queries with the 4D language as well as with SQL.


Specific examples show both languages in parallel in order to compare them easily and to highlight their respective advantages.

 

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

 

Rich Text Area

This example demonstrates the use of the Rich Text Area component to edit styled text within a 4D database.

Download for Windows or Mac

4D Pictures

This application shows off 4D's image processing capabilities.

Images can be displayed in various ways, as well as transformed. They can be imported, exported, and changed from one format to another (i.e. JPG to PNG).

 

Other possibilities are demonstrated as well.

 

Download for Windows or Mac

4D Objects

This example shows all the interface objects managed by 4D.

These include:

 

• variables

• buttons

• hierarchical lists

• fields

• checkboxes

• etc.

 

To use it, you can click on the buttons representing the Form editor tool bar or you can select a specific type of object directly from a dropdown menu.

 

4D Mailing

This application shows how to use the "4D Write" word processor to send customized e-mails to contacts as a mail shot.


Download for Windows or Mac

 

Hierarchical Lists

This application demonstrates how to use a hierarchical list in 4D.

The hierarchical list in this example is built dynamically when you click on the 'expandable' elements.

 

Download for Windows or Mac

 

4D Indexes

This example shows the various possibilities of using indexes in 4D.

4D's index types include:

 

- BTree index for non-repeated values (IDs, names, etc.)
- cluster index for repeated values (Booleans, titles (M., Ms., etc.))
- composite index for sorting (FirstName+LastName, City+ZipCode, State+City, etc.)
- keyword indexes for texts

 

The indexes are created and stored in a separate file.

 

To demonstrate their efficiency, this example explains how to choose the correct index type.
 

Included Lists

This application demonstrates the new possibilities that included lists offer.

In this example, four lists that belong to four different tables are displayed in the same form.

 

The contents of these lists are calculated based on the user's selection.

 

Download for Windows or Mac

Encyclopedia

This application allows you to consult and edit the contents of a glossary or an interactive dictionary.

The words of definition can be clicked individually to access their definitions directly via a link.

 

You can also create new definitions (for any word selected in the texts) by clicking on a button.

 

Download for Windows or Mac