SPAWNPID()

From Recital Documentation Wiki
Revision as of 15:32, 20 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SPAWNPID()

Class

Environment


Purpose

Function to return spawned process identity


Syntax

SPAWNPID()


See Also

SPAWN, ACTIVEPID(), CANCELPID()


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


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer