Maptitude GISDK Help |
Exports the contents of an editor to a new table.
ExportEditor(string editor_name, string class, string file_name, array options)
Argument |
Contents |
editor_name |
The name of the editor to export |
class |
Class of new table to create (dBASE, FFA, FFB, CSV, or EXCEL) |
file_name |
File name for the new table |
Option |
Type |
Contents |
CSV Drop Quotes |
Boolean |
If "True" when exporting to a comma-separated file, do not have quotes around string field values in the exported file (default is "False") |
CSV Header |
Boolean |
If "True" when exporting to a comma-separated file, the first line of the file contains field names, and data starts at the second line (default is "False") |
Dictionary Description |
String |
A description to be stored in the first line of the resulting FFA, FFB, or CSV dictionary file |
Force Numeric Type |
String |
Type should be chosen from "double", "float", "integer", "long", "real", or "short". All numeric fields will be exported using the specified type whenever allowed by the underlying database that is being exported to |
Indexed Fields |
Array |
A list of fields to be internally indexed in the new table |
The file types include FFA for fixed-format text (ASCII), FFB for fixed-format binary, and CSV for comma-separated text (values).
ExportEditor() exports the view, selection set, and fields that are currently being shown in the editor to a new table file.
When exporting to a CSV, FFB, or FFA file, ExportEditor() automatically creates a dictionary file in the proper format.
The old format for the CSV Header option, with no value, is still supported.
If a file of the given name already exists, it is deleted before the view is exported.
Use OpenTable() to open the new table.
ExportEditor("Customer List", "CSV", "customer.csv",
{
{"CSV Header", "True"},
{"Indexed Fields", {"Name", "Sales"}}
})
Error Type |
Meaning |
Error |
Unable to create the table (e.g., the file is currently in use, or disk space is insufficient) |
NotFound |
The view or set name is invalid |
Function |
Summary |
Creates an empty table and opens it as a view |
|
Exports the contents of a view to a new table |
|
Checks whether files are in use by Maptitude |
©2025 Caliper Corporation | www.caliper.com |