BLOGS

HOW DO I

warning: file_get_contents(http://www.telize.com/geoip/54.198.52.82) [function.file-get-contents]: failed to open stream: HTTP request failed! in /var/www/www.4d.com/docs/includes/common.inc(1762) : eval()'d code on line 4.

Introduction to 4D Write Pro

Mar, 2016-01-19 15:17

This How-Do-I helps you to evaluate the features already implemented in 4D Write Pro. This example also allows you to test the conversion of your documents.

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

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

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

Getters & Setters

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

 

Download for Windows & Mac

Objects and JSON

This How-Do-I presents all of the new commands for generating and parsing structured objects (like JSON).

 

Download for Windows or Mac

Form Load Get Type

This How-Do-I shows you how you can use the FORM LOAD command (formerly OPEN PRINT FORMº) and the new commands OBJECT get type and LISTBOX GET OBJECTS.

 

Download for Windows or Mac

Web Get Body Part

Called in the context of a Web process, the WEB GET BODY PART command parses the "body" of a multi-part request.

This demonstrates how to use this command to get a file via the browser.

 

Download for Windows or Mac

Advanced Text Area

How do you create multi-style text areas in 4D?

Use different types of styles based on portions of text: Inster/modify URLs, 4D expressions, recalculations… Manage your own contextual menu in the area… This database will provide you with code examples that can be used in your own projects.

 

Advanced text area

 

Duplicate Column

This How-Do-I is about listboxes.

It shows you how to programmatically duplicate and move a column.

 

Duplicate listbox column

 

Download for Windows or Mac