Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SixFile Functions (continued)

GetURIAuthority Function

Overview

The GetURIAuthority function parses a URI and returns the authority (host name plus other items).

Syntax/Parameters

Syntax

string = GetURIAuthority ( string uri );

Parameters

uri

A string containing a URI with a scheme.

Return Value

Returns a string containing the domain name or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The URI contained in the uri parameter must have a scheme. URIs with the “mailto” scheme will return the entire email address (name@domain name).

If the buffer is exceeded, the GetLastError function will return ERROR_OVERFLOW.

Related Functions

Platform Support

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

Legato IDE, Legato Basic