newdatabaseusingblueprint
newdatabaseusingblueprint
BLUEPRINT

The newdatabaseusingblueprint statement creates a new database from a blueprint.

Parameters

This statement has one parameter:

blueprint – Path and name of the blueprint file, or `""` if you want the statement to prompt the user for the location of the blueprint file.

Description

This statement creates a new database from a blueprint (the blueprint must have been saved with the saveblueprint statement, or using the File>Export>Blueprint menu command). The new database will have the same fields, forms and procedures as the original database (however, it will not contain any data).

This example creates a new mailing list database using a blueprint in the Documents folder.

    newdatabaseusingblueprint "~/Documents/Mailing List.blueprint"

If the path/name is left blank, Panorama will display a dialog that allows the blueprint file to be chosen on the fly.

    newdatabaseusingblueprint ""

This is exactly the same as choosing the File>New>New Database from Blueprint… menu command (in fact, this menu command uses the newdatabaseusingblueprint statment to do its job.

See Also

- blueprintlibraries -- generates blueprints for all procedure library databases.
- constructfieldssheet -- opens a sheet to add/insert multiple new fields into the database.
- Database Blueprints -- exporting a database into a blueprint.
- fieldblueprint -- creates blueprint code for the specified field.
- fieldblueprintsheet -- opens a sheet to edit the blueprint of the current field.
- formblueprint -- creates blueprint code for the specified form.
- formblueprintsheet -- opens a sheet to edit the blueprint of the current form.
- formobjectblueprint -- creates blueprint code for specified form object.
- formoptionsblueprintsheet -- opens a dialog sheet to edit the blueprint of the current form options.
- newformusingblueprint -- creates a new form from a blueprint.
- saveblueprint -- save a blueprint of a database's structure.
- selectedformobjectsblueprintsheet -- opens a sheet to edit the blueprint of the currently selected objects.

History

Version | Status | Notes
10.0 | New | New in this version.