Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SixFile Functions (continued)

MappedTextExport Function

Overview

The MappedTextExport function exports the contents of a Mapped Text or Edit Object to a specified file.

Syntax/Parameters

Syntax

int = MappedTextExport ( handle hObject, string filename, [dword flags] );

Parameters

hObject

A handle to a Mapped Text or Edit Object.

filename

A string specifying a location to export the data.

flags

An optional dword containing flags to adjust the export process. Export flags are as follows:

MSF_NO_NEWLINES             0x00010000   No 0x0A New Line Codes 

Return Value

Returns an int as ERROR_NONE or an int containing formatted error code on failure.

Remarks

The edit changes flag and modified conditions are reset after the Mapped Text or Edit Object is exported.

By default, line endings are marked as “/r/n”. Setting the MSF_NO_NEWLINES flag results in “/r” line endings. If the application is running in GUI mode, the frame is notified of a file change unless the MSF_NO_FILE_SAVE_NOTIFY flag is set. This allows for updating tabs and other information.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic