This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
ABORT PROCESS BY ID

ABORT PROCESS BY ID 


 

ABORT PROCESS BY ID ( uniqueID ) 
Parameter Type   Description
uniqueID  Longint in Unique process ID

The ABORT PROCESS BY ID command stops a specific process on the 4D Server.

In the uniqueID parameter, pass the unique ID of the process running on the server that you want to stop. You can retrieve the process ID with the Process activity or the _o_PROCESS PROPERTIES commands.

Notes:

  • This command can only be executed on 4D Server. If the method calling the command is executed locally on a remote client or in 4D single user, ABORT PROCESS BY ID does nothing.
  • This command is not supported by the Legacy network layer. See Network layer parameter description.
  • This command should only be used for searching errors or administration purposes, not as a regular procedure.

Example  

You want to stop the selected process of the processes collection displayed in a list box:

  //variable =curItemPosition
 
  // Retrieve the list of process on the server and display in the list box
 $activity:=Get process activity(Processes only).processes
 ...
  // The selected process is stopped on the server
 ABORT PROCESS BY ID($activity[curItemPosition].ID)



See also 

PAUSE PROCESS

 
PROPERTIES 

Product: 4D
Theme: Processes
Number: 1634

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)