Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter EightData Functions (continued)

CSVGetNumericField Function

Overview

The CSVGetStringField function retrieves the next CSV field for the current record and converts it to a 64-bit integer.

Syntax/Parameters

Syntax

long = CSVGetNumericField ( handle hCSV );

Parameters

hCSV

A handle to a valid CSV Object.

Return Value

Returns a long representing the next field in a CSV record or 0 on failure. Use the GetLastError function to retrieve error information.

Remarks

The numeric value can be decimal, octal (leading zero), or hexadecimal. The return code from the GetLastError function can differentiate between errors, zero fields, and the end of the record.

For maximum flexibility, the return type is long, it can be set to an int without a runtime warning so long as the value does not overflow.

Related Functions

Platform Support

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

Legato IDE, Legato Basic