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

Use Popups with a Single Variable

This How-Do-I shows you how to use single variables (C_TEXT or C_ALPHA, for example) and to display them as drop-down menus or combo boxes in the interface without using tables.

Popup with variables


Download for Windows or Mac

Use a Placeholder

This How-Do-I example shows how to display placeholder text inside a text field.



Download for Windows or Mac

Set Up a Choice List

This How-Do-I demonstrates how to programatically modify a choice list associated with a form object.

This list can be created just as well in structure mode as it can be dynamically by programming.


set up a choice list


Save as Reference

This How-Do-I demonstrates how to save a value by reference (e.g. 1, 2, 3, 4) instead of by value (e.g. Mr., Mrs., Ms., Dr., etc.).

save as reference


Download for Windows or Mac


Look deep inside your code with introspection features, gaining insight on your development.

Code introspection
The day hasn’t quite come where code can fully generate and maintain itself, but you can be confident in the integrity of your development efforts thanks to powerful new code introspection features.


An Introduction to 4D v13's Main Features

A recording of the webinar presented by Josh Fletcher and Add Komoncharoensiri on February 2, 2012.

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

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