Difference between revisions of "ACTIVEPID()"

From Lianjapedia
Jump to: navigation, search
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return activity of identified process
 
Function to return activity of identified process
 
  
 
==Syntax==
 
==Syntax==
 
ACTIVEPID(<expN>)
 
ACTIVEPID(<expN>)
 
  
 
==See Also==
 
==See Also==
 
[[CANCELPID()]], [[GETGID()]], [[GETPID()]], [[GETUID()]], [[SPAWN]], [[SPAWNPID()]]
 
[[CANCELPID()]], [[GETGID()]], [[GETPID()]], [[GETUID()]], [[SPAWN]], [[SPAWNPID()]]
 
  
 
==Description==
 
==Description==
 
The ACTIVEPID() function returns .T. if the specified process ID, <expN> is still active and .F. otherwise.  The SPAWNPID() function is used to get the process ID <expN> of the last process spawned with the SPAWN command.
 
The ACTIVEPID() function returns .T. if the specified process ID, <expN> is still active and .F. otherwise.  The SPAWNPID() function is used to get the process ID <expN> of the last process spawned with the SPAWN command.
 
  
 
==Example==
 
==Example==
Line 22: Line 18:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Disk and File Utilities]]
+
[[Category:Environment Functions]]
[[Category:Disk and File Utilities Functions]]
+
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 06:17, 10 December 2012

Purpose

Function to return activity of identified process

Syntax

ACTIVEPID(<expN>)

See Also

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

Description

The ACTIVEPID() function returns .T. if the specified process ID, <expN> is still active and .F. otherwise. The SPAWNPID() function is used to get the process ID <expN> of the last process spawned with the SPAWN command.

Example

spawn db program
? activepid(spawnpid())
.T.