Difference between revisions of "SPAWNPID()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return spawned process identity
 
Function to return spawned process identity
 
  
 
==Syntax==
 
==Syntax==
 
SPAWNPID()
 
SPAWNPID()
 
  
 
==See Also==
 
==See Also==
[[ACTIVEPID()]], [[CANCELPID()]], [[RUN]], [[SPAWN]]
+
[[ACTIVEPID()]], [[CANCELPID()]], [[SPAWN]]
 
+
  
 
==Description==
 
==Description==
 
The SPAWNPID() function returns the identity of the last spawned process.  The process identity returned can be used with the ACTIVEPID() or the CANCELPID() functions.  A spawned process will only remain active while the user remains logged in to the system.  All spawned processes will be terminated when the user logs out.  See the RUN command for batch processing.
 
The SPAWNPID() function returns the identity of the last spawned process.  The process identity returned can be used with the ACTIVEPID() or the CANCELPID() functions.  A spawned process will only remain active while the user remains logged in to the system.  All spawned processes will be terminated when the user logs out.  See the RUN command for batch processing.
 
  
 
==Example==
 
==Example==
Line 30: Line 26:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[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 07:03, 10 December 2012

Purpose

Function to return spawned process identity

Syntax

SPAWNPID()

See Also

ACTIVEPID(), CANCELPID(), SPAWN

Description

The SPAWNPID() function returns the identity of the last spawned process. The process identity returned can be used with the ACTIVEPID() or the CANCELPID() functions. A spawned process will only remain active while the user remains logged in to the system. All spawned processes will be terminated when the user logs out. See the RUN command for batch processing.

Example

spawn db program
m_activepid = spawnpid()
if activepid(m->m_activepid)
    if cancelpid(m->m_activepid)
        dialog box "Process Canceled "
    else
        dialog box "Unable to Cancel Process."
    endif
else
    dialog box "There is no Process Active".
endif