BLOGS

EXAMPLE APPLICATIONS

warning: file_get_contents(http://www.telize.com/geoip/54.225.47.94) [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.

4D SOAP Client

This SOAP client queries the "4D SOAP Server" application, which must be launched before hand using another 4D application.

Download for Windows or Mac

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

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

Contact List Box

This application shows you how to use the List Box object with and without programming.

The List Box object replaces grouped arrays on your forms.

 

You can enter data directly into a cell, display alternate colors for rows, resize and sort columns, and much more.

 

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.

 

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.
 

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

 

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