BLOGS

DATA HANDLING

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

Getters & Setters

This How-Do-I presents all of the new Getters and Setters in 4D v14.

 

Download for Windows & Mac

Set Datasource

This How-Do-I will show you how to modify the "source" of a form object programatically, no matter the type (text field, rule, checkbox, dropdown, etc.).

Set datasource

 

Download for Windows or Mac

4D Indexes

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

There are several types of indexes in 4D that can be selected according to the type of data and their use.

In addition to demonstrating their effectiveness, this example explains how to choose the most appropriate type of index.

 

4D Indexes

 

Download for Windows or Mac

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 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 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 Pictures

This example database shows the picture processing that is possible in 4D.

Pictures can be displayed in different ways (truncated, replicated, etc.). They can be transformed (cropped, stretched, etc.).

 

It's also possible to import and export images, as well as to change them from one type to another (from .JPG to .PNG, for example).

 

These possibilities as well as others are demonstrated in this database.

 

Download for Windows or Mac

Compare Pictures

Pictures may look similar, but are they really identical? The new function "equal pictures" will give you the answer!

The function returns "true" or "false" depending on the result.

 

It also builds a mask that shows you the differences between the pictures you compare.

 

Download for Windows or Mac

File Management Enhancement

In 4D v13, some existing file management commands have been improved.
  • COPY DOCUMENT
  • CREATE FOLDER
  • DOCUMENT LIST
  • System folder
  • Select document

 

This "How Do I" covers all of the above commands.

 

Download for Windows or Mac

Get Digest

This example shows you how to use the new Get Digest command.

Part of this functionality was previously available in 4D Pack, using the MD5 algorithm and applied only to documents.

 

The new 4D command will be able to use two different algorithms (MD5 digest and SHA1 digest) and apply it to variables.

 

Here you have an example of how it works on a variable and how to manipulate it on a document.

 

Download for Windows or Mac