⌧createdatabase
DATABASE

The ⌧createdatabase statement creates a new database.


Parameters

This statement has one parameter:

database – is is the name of the new database. There must not already be an open database with this name.


Description

This statement creates a new database. The new database has one field (named Untitled) and one empty record. The new database has no open windows, but it is the active database with a secret window.

This example creates a new database named Contacts, then opens the data sheet

createdatabase "Contacts"
opensheet

This example above doesn’t create any database fields. Here’s a more functional example that creates a mailing list database with 5 fields.

createdatabase "Mailing List"
setfieldproperties initializedictionary("NAME","Name")
addfield "Address"
addfield "City"
addfield "State"
addfield "Zip"
opensheet

See Also


History

VersionStatusNotes
1.0NewNew in this version.