Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter Twenty-oneEDGARView Integration (continued)

EDGARValidateValue Function

Overview

The EDGARValidateValue function validates a string as complying with a specific EDGAR value format. The function can optionally display a message box which is useful for dialog field validation.

Syntax/Parameters

Syntax

int = EDGARValidateValue ( string data, dword type, [string name] );

Parameters

data

A string containing the target data to test.

type

A dword using bits to specify the rules for validation. See Remarks.

name

An optional string naming the field for a message box or last error message string. The string can be a maximum of 127 characters.

Return Value

An int as ERROR_NONE (0) or a formatted error code on failure. Use the GetLastErrorMessage function to get a text version of the error.

Remarks

This is a general purpose validator that is meant to cover the schema specified fields in some of the EDGAR XML specifications. The types are as follows:

  Definition   Bitwise   Description  
  Control and Options        
    EVV_REPORT_ERROR   0x10000000   Report Error in Message Box  
    EVV_TYPE_MASK   0x0000FFFF   Mask for Types  
  EIS Schema        
    EVV_ACCESSION_NUMBER   0x00000001   CIK_TYPE  
    EVV_CATEGORY   0x00000002   Category  
    EVV_CCC   0x00000003   CCC_TYPE  
    EVV_CIK   0x00000004   CIK_TYPE 0123456789  
    EVV_CLASS_ID   0x00000005   Class ID  
    EVV_CLASS_NAME   0x00000006   Class Name  
    EVV_COMPANY_NAME   0x00000007   Company Name  
    EVV_CONTACT_NAME   0x00000008   Contact Name  
    EVV_CUSIP   0x00000009   CUSIP  
    EVV_DATE_TYPE   0x00000011   DATE_TYPE mm/yyyy  
    EVV_DATE_MM_YYYY_TYPE   0x00000012   DATE_MM_YYYY_TYPE mm-dd-yyyy  
    EVV_DATE_YYYY   0x00000013   Date as YYYY  
    EVV_DECIMAL_TYPE14_2   0x00000014   DECIMAL_TYPE14_2 22.33  
    EVV_DECIMAL_TYPE20_8   0x00000015   DECIMAL_TYPE20_8 22222.33333  
    EVV_DEPOSITORY   0x00000016   Depository  
    EVV_DESCRIPTION   0x00000017   Description  
    EVV_DOCUMENT_TYPE   0x00000018   Document Type  
    EVV_EMAIL   0x00000019   Email  
    EVV_ENTITY_NAME   0x00000021   Entity Name  
    EVV_FILE_NAME   0x00000022   File Name  
    EVV_FILE_NUMBER   0x00000023   File Number  
    EVV_FISCAL_YEAR   0x00000024   Fiscal Year  
    EVV_GROUP_NAME   0x00000025   Group Name  
    EVV_INTEGER_TYPE_2   0x00000029   INTEGER_TYPE_2 12  
    EVV_INTEGER_TYPE_8   0x00000031   INTEGER_TYPE_8 12345678  
    EVV_IRS_NUMBER   0x00000026   IRS Number  
    EVV_ITEM_ID   0x00000027   Item ID  
    EVV_ITEM_ID_2   0x00000028   Item ID 2  
    EVV_PASSWORD   0x00000032   Password  
    EVV_PHONE   0x00000033   Phone  
    EVV_MONEY   0x00000034   Money  
    EVV_NUMBER   0x00000035   Number  
    EVV_SECURITY_NAME   0x00000036   Security Name  
    EVV_SERIAL_NAME   0x00000037   Serial Name  
    EVV_SERIES_ID   0x00000038   Series ID S123456789  
    EVV_SHARES_ID   0x00000039   Shares ID series or class  
    EVV_SROS   0x00000041   SROS  
    EVV_SS_NUMBER   0x00000042   SS Number  
    EVV_TIN_NUMBER   0x00000043   TIN Number  
  Non-Schema       (non-schema)  
    EVV_NS_DATE_YYYY   0x00000100   Format: DATE_YYYY   ie., 2000  
               

 

Platform Support

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

Legato IDE