BLOGS

4D V13

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

4D Objects

This database demonstrates all of 4D's interface objects.

To access each object, you can either click on the picture buttons on the left side of the form or select it directly from the drop-down menu. 

 

Download for Windows or Mac

4D Listbox

This example database demonstrates the Listbox object capabilities in 4D.

 

Download for Windows or Mac

4D Hierarchical Lists

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

New for 4D v13: A new event is now generated when an item deletion is requested. The "effective" deletion is done by programming.

 

Download for Windows or Mac

Selection to Array

4D v13 introduces new syntax for Selection to Array, Array to Selection, and Selection Range to Array.

This demo shows you how to use them.

 

Download for Windows or Mac

Picture Names in Pictures

How do I save a picture's name in the picture itself?

When you drop or import a picture into a 4D variable or field, 4D reminds you of the name of the original file.

 

This name will be used by default in the system "save file" dialog when the command "SAVE PICTURE TO FILE" will be called or when using the contextual "Save as..." menu.

 

The file name saved inside the picture can be modified or simply read using the new commands PICTURE SET FILENAME and Picture get filename.

 

 

Get Text Keywords

When storing a text with a keyword index, the field content is parsed to fill a keyword list in order to build the index. A new command does the same on a passed variable (or field).

GET TEXT KEYWORDS(theText ; the TextArray) fills an array with all words within the text. 

 

GET TEXT KEYWORD(theText ; the TextArray ; *) fills an array with all unique words within the text.

 

Download for Windows or Mac

Get Query Destination

How do I use "GET QUERY DESTINATION" and "Get query limit"?

We added the command GET QUERY DESTINATION to allow you to know where the result of the current query has been placed for the current process, and the command Get query limit that lets you know whether or not there is a limit for the query.

 

We've also added a new parameter for the command SET QUERY DESTINATION: A pointer to the local variable, when the destination type is a variable.

 

Download for Windows or Mac

Get List Item Parameters

This "How Do I" demonstrates how to read list item names.

Previous to 4D v13, to retrieve a parameter value, you had to know the parameter name and use the GET LIST ITEM PARAMETER command.

 

With the new GET LIST ITEM PARAMETER ARRAYS command, you can retrieve all parameter names and parameter values.

 

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