Description
The ImportFile, ImportString, and ImportClipboard methods for DataWindows and Graph objects support XML and CSV as import formats, and the SaveAs methods support XML. You can also import and save using these formats in the DataWindow and Database painters.
Usage
The import methods have an optional first parameter that enables you to specify the type of data to be imported. For ImportFile, the valid types are Text!, CSV!, XML!, DBase2!, and DBase3!. If you specify this parameter, you do not need to include the extension in the import file name:
gr_1.ImportFile( XML!, "c:\data\customers")
If you do not specify this parameter, the extensions .TXT, .CSV, .XML, and .DBF are recognized. For ImportString and ImportClipboard, the valid datatypes are Text!, CSV!, and XML!.
You can create XML templates to control the import and export of most DataWindow objects. You cannot use templates with Graph objects or DataWindow objects that use the Graph, OLE, or Composite presentation styles.
|