Difference between revisions of "CANCELPID()"

From Recital Documentation Wiki
Jump to: navigation, search
(Description)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
==Class==
 
Disk and File Utilities
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to cancel a sub-process
 
Function to cancel a sub-process
Line 16: Line 12:
  
 
==Description==
 
==Description==
The CANCELPID() function returns .T. if the specified process ID <expN> could be "killed" and .F. otherwise.  The SPAWNPID() function is used to get the process ID of the last process spawned.
+
The CANCELPID() function returns .T. if the specified process ID <expN> was "killed" and .F. otherwise.  The SPAWNPID() function is used to get the process ID of the last process spawned.
 
+
  
 
==Example==
 
==Example==
Line 36: Line 31:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Disk and File Utilities]]
 
[[Category:Disk and File Utilities]]
 
[[Category:Disk and File Utilities Functions]]
 
[[Category:Disk and File Utilities Functions]]

Latest revision as of 16:56, 28 December 2011

Purpose

Function to cancel a sub-process


Syntax

CANCELPID(<expN>)


See Also

ACTIVEPID(), GETGID(), GETPID(), GETUID(), SPAWN, SPAWNPID()


Description

The CANCELPID() function returns .T. if the specified process ID <expN> was "killed" and .F. otherwise. The SPAWNPID() function is used to get the process ID of the last process spawned.

Example

spawn db program
m_activepid = spawnpid()
if activepid(m->m_activepid)
    if cancelpid(m->m_activepid)
        dialog box "Process Canceled."
    else
        dialog box "Process couldn't be Canceled."
    endif
else
    dialog box "There is no Process Active."
endif


Products

Recital Server, Recital