EndTask

The function EndTask stops a specified run-time module that is currently running.

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

Syntax

  EndTask(strTask)  
Web Studio Help tion moduleactivity endtask.xml d150790e87 EndTask
strTask
The name of the task to stop (must be one of the following):
Value Description
BGTask Background Tasks
Viewer Viewer
DBSpy Database Spy
LogWin LogWin
Driverdrivername Driver
UniDDECl DDE Client
UniNDDE DDE Server
UniODBC ODBC
TCPSserver TCP/IP Server (i.e., the project runtime server)
TCPClient TCP/IP Client
OPCClient OPC Client

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" )  

EndTask