
! script name: events.d/listevent
! topic: Sample - list events

!A
!A NAME:
!A
!A 	LIST EVENTS
!A
!A DESCRIPTION:
!A
!A 	This script reads all event data
!A 	and lists them to the screen.
!A
!C NOTE:
!C
!C 	This is an unsupported sample script.
!C

stat=ChangeLabelStr("ScriptNameStatus","Function: toollist ")

DIM Destination$[256]
DIM Answer$[256]
DIM Name$[256]
DIM File$[256]

WsEventData= 12345

File$="/usr/weber/userdata/eventlist"

ON ERROR GOTO Make_file
PURGE File$

Make_file:!
Stat=OutputAllData(File$,WsEventData,WsAppend)

Stat=MessageFileBox(File$,"EVENT LIST")

Leave:!
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
