CANCELPID()

From Recital Documentation Wiki
Revision as of 09:52, 24 March 2009 by Yvonnemilne (Talk | contribs)

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

Class

Environment


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> could be "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 Database Server, Recital Mirage Server, Recital Terminal Developer