Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FourteenProject Functions (continued)

ProjectGetEntryAsNumber Function

Overview

The ProjectGetEntryAsNumber function will retrieve a specific data element from a project entry as a numeric value.

Syntax/Parameters

Syntax

mixed = ProjectGetEntryAsNumber ( int index, int item );

Parameters

index

An int that specifies the zero-based position of the entry within the project.

item

An int specifying the item to retrieve.

Return Value

Returns a dword or a qword containing the specified item or a formatted error code on failure. Use the GetLastError function to retrieve error information.

Remarks

Entry properties are mixed as strings and numeric data. Those items that are strings and cannot be converted will cause a syntax error. The GetLastError function should be used to differentiate between an empty return value caused by an empty item or by an error (since bits may interfere with error codes).

The items are as follows (note that certain incompatible string items (see the ProjectGetEntryAsString function) are removed):

  Term   Ordinal   Description
  File:        
    PROJECT_ENTRY_MOD_TIME   1   Time the file was last modified (returned as ISO-8601)
    PROJECT_ENTRY_SIZE   2   Size of the file
    PROJECT_ENTRY_F_TYPE   3   File Type (FT_)
    PROJECT_ENTRY_FLAGS   4   Flags
  Publishing:        
    PROJECT_ENTRY_MEMBER_FLAGS   10   Membership Flags
  FTP Server/Transfer Information:      
    PROJECT_ENTRY_LU_SIZE   12   Last Upload Size
    PROJECT_ENTRY_LU_MOD_TIME   13   Last Upload Modified Time (returned as ISO-8601)
    PROJECT_ENTRY_LU_SERVER_TIME   14   File Time on File Server (returned as ISO-8601)

 

 

Related Functions

Platform Support

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