EndTask

Stops the IWS module that is currently running.

Function Group Execution Windows Embedded Thin Client
EndTask Module Activity Asynchronous Supported Supported Executed on Server

Syntax

EndTask(strTask)
strTask
The name of the task to stop (must be one of the following):
BGTASK Background Tasks
VIEWER Viewer
DBSPY Database Spy
LOGWIN LogWin
DRIVERDriverName Driver
UNIDDECL DDE client
UNINDDE DDE server
UNIODBC ODBC
TCPSERVER TCP/IP Server
TCPCLIENT TCP/IP Client
OPCCLIENT OPC

Returned value

No returned values.

Examples

Tag Name Expression
  EndTask( "Viewer" )
Note: To close a driver, you must use the following syntax:
EndTask( "DriverDriverName" )
Where DriverName is the name of the driver's .dll file. For example:
EndTask( "DriverMODBU" )