Kill (shut down the ReportManager object)

Top  Previous  Next

 

Kill, VIRTUAL, PROC

The Kill method frees any memory allocated during the life of the object and performs any other required termination code. Kill returns a value to indicate the status of the shut down. Valid return values are:

 

Level:Benign

normal shut down

 

Level:Notify

no action taken

Member of: ReportManager

Implementation:

The Run method calls the Kill method. If the Dead property is True, Kill returns Level:Notify and takes no other action. Otherwise, the Kill method, among other things, calls the WindowManager.Kill method.

Return value EQUATEs are declared in ABERROR.INC.

Return Data Type:     BYTE

Example:

ThisWindow.Kill PROCEDURE()

CODE

IF PARENT.Kill() THEN RETURN Level:Notify.

IF FilesOpened

 Relate:Defaults.Close

END

IF SELF.Opened

 INIMgr.Update('Main',AppFrame)

END

GlobalResponse = CHOOSE(LocalResponse=0,RequestCancelled,LocalResponse)

See Also:     WindowManager.Dead, WindowManager.Run