Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter EightData Functions (continued)

WorkbookOpen Function

Overview

The WorkbookOpen function opens an XDS file, loads the information table and mapped the data sheets. Sheet data is not loaded, only mapped.

Syntax/Parameters

Syntax

handle = WorkbookOpen ( handle hSheet, string filename );

Parameters

hSheet

A handle to a Data Sheet Object.

filename

A string specifying qualified filename to write the XDS data to.

Return Value

Returns a handle to a Workbook Object or NULL_HANDLE on failure. Use the GetLastError and GetLastErrorMessage to retrieve additional information.

Remarks

The incoming file must be in XDS format as specified in Appendix B — XML Data Sheet Format Specification of the SDK. Also note that for third party generators, each sheet must start on a fresh line within the file.

The open function will return error detail in the lower 16 bits of the formatted error code. These are as follows:

0x1001 — Syntax error in heading. Missing <xds> or XML header.

0x1003 — Incorrect namespace.

0x1010 — Premature end of file or error reading data.

0x1012 — Missing or inappropriate information table entry name.

0x1014 — Error reading sheet data.

0x1020 — Too many sheets in workbook.

Related Functions

Platform Support

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

Legato IDE, Legato Basic

Page revised 2024-12-13