Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter EightData Functions (continued)

CSVSetExportFlags Function

Overview

The CSVSetExportFlags function sets flags directing the manner in which CSV data is written by the CSV Object.

Syntax/Parameters

Syntax

int = CSVSetExportFlags ( handle hCSV, dword flags );

Parameters

hCSV

A handle to a valid CSV Object.

flags

A dword containing flags to set.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. Use the GetLastError function to retrieve error information.

Remarks

Certain options can be set to control how fields are appended and records written. The bits are as follows:

  Define   Bitwise   Description  
  CSV_APF_DELIMITER_MASK   0x000000FF   Delimiter (other than comma)  
  CSV_APF_QUOTE_AS_REQUIRED   0x00010000   Only Quote if Required (Excel Style)  
  CSV_APF_LINE_ENDING_MASK   0x00F00000   Line Ending Mask  
  CSV_APF_LINE_ENDING_CRLF   0x00000000   Line Endings as CR/LF  
  CSV_APF_LINE_ENDING_CR   0x00100000   Line Endings as CR Only  
  CSV_APF_LINE_ENDING_LF   0x00200000   Line Endings as LF Only  

 

The default settings are comma delimiter, full quoting and CR/LF line endings.

Related Functions

Platform Support

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

Legato IDE, Legato Basic