Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter EighteenDataView Integration (continued)

on_file_import

Overview

The on_file_import event is called when the user selected File | Import | Import File ribbon or menu function.

Syntax/Parameters

Syntax

int on_file_import ( string filename ) { ... }

Parameters

filename

The filename to import to import or if empty, the hook is expected to query.

Return Value

The function is expected to complete the process. An error code can be returned but is presently ignored.

Remarks

To enable the ribbon or menu function, the hook on_menu_init() must return the bit FV_FILE_IMPORT.

Related Events and Functions

Page revised 2024-04-22