Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6j

Application v 6.5c

  

 

Chapter ElevenSGML Functions (continued)

xBRL-CSV

XBRLGetTableRowCount Function

Overview

The XBRLGetTableRowCount function returns the number rows in the referenced CSV file for a specific Table within the loaded instance.

Syntax/Parameters

Syntax

int = XBRLGetTableRowCount ( handle hXM, string id | int index );

Parameters

hXM

A handle to an XBRL Model Object containing xBRL-CSV instance data.

id

A string containing a table identifier. The value is case-sensitive. Or,

index

A zero-based int value specifying the table to retrieve.

Return Value

Returns an int as the count of the number of rows loaded or a formatted error code on failure. Use the GetLastError and GetLastErrorMessage functions to retrieve additional error information.

Remarks

The returned count is the physical number of rows contained with the referenced CSV file. This includes the first row containing the column ID. As such, the number of records is the rows -1.

Related Functions

Platform Support

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

Page revised 2026-07-20