Developing an application is often a very collaborative job, involving many people. In this case, you may want store your development in a source control repository, or have a history of the work done during the day, or send your database to a colleague and see the changes when they’re done working on it.
All of the above scenarios are now possible! Beginning with v17 R3, you can export the .4DB file into multiple text files. This offers you many new possibilities.
Export via the interface
A new menu item is available in the “File/Export” menu. This opens a window which allows you to choose the location of the export folder. Then, simply validate your choice to export your database structure file.
Export via the code
If you want to automate the process of exporting your database structure, you can use the new Export structure file command:
result:=Export structure file(pathname)
You can also choose to only export methods. In this case, pass a filter object with the elements to export. For more details on available filter attributes, see the documentation.
options.withLog:="ifNotEmpty" // Created only if it contains some messages
options.filter:=New object // Object that describes what should be exported
result:=Export structure file(pathname;options)
Lastly, you can also call this command from a component. (This command always exports the host database structure.)