Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SeventeenApplication Integration Functions (continued)

MenuIsHooked Function

Overview

The MenuIsHooked function tests to see if a menu function is hooked.

Syntax/Parameters

Syntax

boolean = MenuIsHooked ( int id | string code );

Parameters

id

An int that specifies the function ID as returned to the script from various menu functions. This id code can be dynamic, thus programmers should not use fixed values for functions. When id is supplied, code cannot be used.

code

A string containing the specific code for a function (for example, “EDGAR_SUBMIT_TEST”). When code is supplied, id cannot be used.

Return Value

Returns TRUE if the menu function is hooked or FALSE if it is not. If an error occurs, FALSE will be returned. Use the GetLastError function to retrieve error information.

Remarks

An invalid id or code parameter will result in the value FALSE being returned.

Related Functions

Platform Support

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

Legato IDE