4D V13

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

File Management Enhancement

In 4D v13, some existing file management commands have been improved.
  • 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

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

Getters and Setters

4D v13 introduces new getters and setters.

This demo shows you how to use these new getters and setters and their associations.


Download for Windows or Mac

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

HTTP Client

As of 4D v13, there is a built-in HTTP client in 4D.

This "How Do I" covers the various commands that are used with the new HTTP client.


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.



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

Stats Functions

4D v13 introduces enhancements to stats functions.

This "How Do I" demonstrates how to use statistical functions on arrays.


Download for Windows or Mac