LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lpw.GetEventNumber - Display a wizard for selecting an event

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

value = lpw.GetEventNumber();

Description

The lpw.GetEventNumber LUA function display a window that helps your to retrieve an Event Number.

Parameters

none

Return Values

value : An event number

Return nil if an error occurs

Example

if (lp.IsDebugMode()==1) then

lib,init=lp.LoadLibrary(lp.GetPath().."/lua_lp_wizardd.dll","libinit");

else

lib,init=lp.LoadLibrary(lp.GetPath().."/lua_lp_wizard.dll","libinit");

end

 

if (lib) then

init();

eventref=lpw.GetEventNumber();

lp.Print("Event = ",eventref,"\n");

end

get event number

get event number

 

 


www.loriotpro.com