Please enable JavaScript to view this site.

ESL Documentation

Prototype

subroutine EcsDisconnect(  )

Description

Disconnects from an active connected session.

Parameters

None

Return Value

ECS_E_NOTINIT

Not initialized - command was ignored

ECS_E_NOTCONN

Not connected to an active session

ECS_E_ERRORFREE

No errors were generated

Example

###********************

###  Common exit action

###********************

action CheckExit is

 if (ReplyToMessage("Exit",
                         "Are you sure?",
                         MessageYesNo,
                         1,
                         MessageQuery) = "yes") then

      call EcsDisconnect ( )

      exit

   end if