This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
EXPORT STRUCTURE
|
EXPORT STRUCTURE ( exportedStructure {; format} ) | ||||||||
Parameter | Type | Description | ||||||
exportedStructure | Text variable |
![]() |
Export of the 4D database structure definition (by default in XML format) | |||||
format | String |
![]() |
Export format: xml format (default) or html format | |||||
The EXPORT STRUCTURE command exports the structure definition of the current 4D database in exportedStructure.
In exportedStructure, you pass the text variable intended to store the structure definition. The exported definition includes tables, fields, indexes, and relations, as well as their attributes and any characteristics necessary for a complete description of the structure. Invisible elements are exported with the corresponding attribute. However, deleted elements are not exported.
By default if you omit the format parameter, the command exports the structure definition in XML format. Otherwise, you can pass one of the following constants in the format parameter:
Constant | Value | Comment |
html format | html | Exports structure in html format |
xml format | xml | Exports structure in xml format (default) |
The command generates the same XML or HTML code as the Export > Structure definition to XML file... or Export > Structure definition to HTML file... menu item (see Exporting and importing structure definitions).
You want to export the current database structure in a text file:
var $vTStruc : Text
EXPORT STRUCTURE($vTStruc)
TEXT TO DOCUMENT("myStructure.xml";$vTStruc)
You want to export the current database structure in html format:
var $vHtml : Text
EXPORT STRUCTURE($vHtml;html format)
File("/PACKAGE/myProject Structure Export/myProject.html").setText($vHtml)
Product: 4D
Theme: Structure Access
Number:
1311
Created: 4D v14 R4
Modified: 4D v20 R4
4D Language Reference ( 4D v20 R7)