When the solution matters

Tips...

4D v11 SQL (Current Version)4D 2004 Solution Accelerators Academic Downloads

Solution Accelerators

4D Meetings

4D Example Databases: Under the Hood

Wow! | Under the Hood | Templates

Download Instructions

4D Examples - Beginner Level

Example Name Windows MacOS
BLOBit
BLOBIt allows a user to import any file, application or folder into a 4D database for archiving. Files can then be extracted either individually or in groups. All Mac OS and Windows file types are supported. On Mac OS a thumbnail is automatically extracted from any picture files which contain one.
Windows MacOS
Catalog Tool
Here's a database to keep track of your backups. In reality, you can use it to catalog any volume; but it was designed to catalog backup CD's.
Windows MacOS
Check Register
This is a simple check register for multiple checking or savings accounts. This database resembles a popular accounting program, just to demonstrate that a 4D database doesn't need to look like a 4D database.
Windows MacOS
Chord Tool
The Chord Tool example database lets you select musical chords and display the notes as they would be played. You can even specify a chord and then switch keys to see how the chord is played in different keys.
Windows MacOS
Color Picker
The Color Picker database demonstrates a simple way of expanding the choice of colour available in a 4th Dimension database. This database also makes use of the Form Object Property list, which demonstrates how the appearance of many objects can be changed while keeping the amount of code to a minimum.
Windows MacOS
Color Tool
Here's a database to keep track of your color setups. It also converts as closely as possible between the 4D standard 256 color palette, and the "Web Safe" palette of 216 colour.
Windows MacOS
Contact Manager
Simple contact manager database for use as a building block to demonstrate other beginner's databases.

Windows MacOS
Context v1
The Context demo shows a basic web interface to a database. Through a browser connection a user can list, add, delete, and query records. The functionality in this demonstration is provided via a context connection.
Windows MacOS
Context Switch
This database demonstrates how to switch between contextual and non-contextual web serving modes in 4D code.
Windows MacOS
Date Entry
This example contains a set of routines to make date entry fields more flexible for the end user.
Windows MacOS
Distributed
4D offers enhanced communication between a client and any other client or server. It is now possible to send a message, update a variable or perform an action on a client with just one command. This is an example database of an inter-client messaging system that can be easily incorporated into your database with little effort.
Windows MacOS
eBiz
The E-biz demo database was designed to demonstrate how it is possible using 4D to create an application for Electronic Commerce. This database uses static pages that contain calls to the 4D database engine. It also manages dynamic pages directly extracted from the database for both querying and entering data.
Windows MacOS
Euro Calculator
Wonderful example of using 4D's GUI tools to create a calculator that can calculate the new Euro Currency. You have got to check this one out, even if you do not plan on creating a calculator yourself.
Windows MacOS
Euro Converter
Demonstrates the "EuroConverter" and "Get edited text" commands in 4D v6.7. Also demonstrates the new "On After Keystroke" form event.
Windows MacOS
Form Events
This database demonstrates the three FORM EVENTS: On Timer, On Resize, On After Keystroke.
Windows MacOS
GotoArea
The "GOTO AREA" command allows you to use an optional asterisk parameter to refer to the field or variable by its object name. This example database presents a dialog where you can click either of two buttons to move the cursor to the entry area underneath that button.
 Windows MacOS
HTML
This example database uses several of the Web Serving commands and shows how they work together in a web serving environment.
Windows MacOS
Index Key
This database deals with the following commands: Find Index Key, QUERY WITH ARRAY, HIGHLIGHT RECORDS
Windows MacOS
Loan Tool
Here's a database to figure out simple compounded interest for a loan. The good news is, you can enter as many loans as you like and compare the results for different durations and interest rates, find the one that works best, and print out amortization tables.
Windows MacOS
Music Library
Here's a database to keep track of your music library.
Windows MacOS
Objects
This sample database shows how to move objects on a form via 4D code as well as how to get an objects location.
Windows MacOS
On Outside Call
This database is an example of using the Call Process command and On Outside Call Form Event to update a process from another process.
Windows MacOS
Open Windows
One of the areas that someone new to 4D needs to understand to take advantage of how to open windows in 4D. This database contains a way of opening different windows with different criteria and different scenarios to open databases.
Windows MacOS
PictToGif
This sample database shows how to use the comman Pict To Gif.
Windows MacOS
Phone Messages
This is a multi-user ready database that can be used to take phone messages for other people in your office.
Windows MacOS
Process Properties
This example database uses the "PROCESS PROPERTIES" command to get the information displayed in a process list window.
Windows MacOS
Processes
This database deals with the following commands: Register Client, Unregister Client, Execute on Client
Windows MacOS
Recipes
The Recipes database is designed to show new users of 4D a simple database that uses many features of 4D. It allows the user to create and delete records, perform queries and, print recipes and shopping lists.
Windows MacOS
Report Demo
This simple database contains a hierarchical data structure with 3 tables; a structure which is very common in database design.
Windows MacOS
Room Manager v1
Room Manager v1 is the first of a series of demos that will be incrementally developed using v1 as the base structure. Room Manager will handle reservations for conference rooms, labs, classrooms, etc.
Windows MacOS
SelectFolder
Demonstrates the "Select folder" command, which displays a dialog box that allows the user to select a folder. The command returns the path to the folder.
Windows MacOS
Send BLOB
The SendBlob demo demonstrates the “Send HTML Blob” command.
Windows MacOS
Semaphore DB
Semaphores are an important concept of 4D but they are a new concept that is foreign to most new programmers. This database provides a simple example of using the semaphore commands, as well an interactive example of using semaphores. This database incorporates the v6.7 semaphore commands.
Windows MacOS
Snap-e
The purpose of the demo is to show how to build a simple ecommerce site. There are many different ways to build an ecommerce site. This demo shows one possible way and should not be mistaken to be the most efficient or correct way. The Snap-e demo enables web users to purchase products over the web. It tracks the user’s shopping cart and receives their purchase information. Web orders are automatically saved and an email confirmation is sent to the customer.
Windows MacOS
Sets & Selections
This database deals with the following commands: DISTINCT VALUES, LONGINT ARAY FROM SELECTION, BOOLEAN ARRAY FROM SET, CREATE SET FROM ARRAY, CREATE SELECTION FROM ARRAY, HIGHLIGHT RECORDS
Windows MacOS
Structure Access
This database deals with the following commands: Get Database Parameter, SET DATABASE PARAMETER
Windows MacOS
Simple Shell
A Shell is used as a starting point for creating a database, so the developer doesn't have to create everything from scratch each time. This is the shell used to create some of the 4D example databases. You're free to use it for your own masterpieces if you like.
Windows MacOS
Spinners
This example contains a set of routines to allow you to add "spinners" to numeric, date, and time fields on 4D forms.
Windows MacOS
Stack Space Error
This is a demonstration for executing the command Send HTML File, while in Contextual mode, without getting an "Out of Stack" error. For details see the companion tech tip titled "Using the command SEND HTML FILE in Contextual Mode"
Windows MacOS
Timers
This sample database shows how to use the SET TIMER command and the form event On Timer.
Windows MacOS
Time Billing Windows MacOS
Web Exam
The Web Exam demo enables students to take an exam via a web browser. It will verify their login name and password, administer the test, record the answers given, compute the grade, and finally send the grade back to the user. The purpose of the demo is to show how dynamic data is received and served from 4D Web Server in non-contextual mode.
Windows MacOS
Web Calendar
4D Web Calendar is a Web Calendar similar to the one you can find on Yahoo and other major portals.
Windows MacOS
Web Photo Album
The Web Photo Album demo database is designed to demonstrate 4D's abilities for publishing a database of pictures on the Internet. This database uses static pages, published by 4D's HTTP server. These pages include calls to the 4D database engine as well as frames.
Windows MacOS
Web Chart
Web Chart is a simple demo that shows how to display a real time graph over a web connection.
Windows MacOS

4D UK Newsletter

Please enter your email address to register for the 4D UK newsletter

International | Company | Contact 4D | Site Map | Privacy Policy | © 4D UK 1995-2008 | Change font size: [A] [A] [A] | Print this page