Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

XBRLTaxonomyTypeToString Function

Overview

The XBRLTaxonomyTypeToString function translates a taxonomy code to a string.

Syntax/Parameters

Syntax

string = XBRLTaxonomyTypeToString ( dword type );

string = XBRLTaxonomyTypeToString ( string URL );

Parameters

type

A dword containing a taxonomy type code.

url

A string containing the URL of a well known taxonomy or taxonomy component.

Return Value

Returns a string with formatted taxonomy name or empty on failure. Use the GetLastError function to retrieve a formatted error code.

Remarks

This function allows the bitwise taxonomy type code to be translated into a uniform string. This function only works with well defined US taxonomies.

The format is always:

name [variation] year[Qn][-mm-dd]

For example:

DTR 2020-01-21

VIP 2022Q2

US-GAAP 2022

Related Functions

Platform Support

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

Legato IDE, Legato Basic