PickBASIC / FlashBASIC
%pgetpid() function
.mdThe %pgetpid() function returns the UNIX Process-ID (PID) associated to the D3 process line.
For Windows: Not Supported
Syntax
var = %pgetpid(line)Description
If line is equal to -1, the PID of the current process is returned. If line is equal to -2, the PID of the flush process is returned. If the D3 process is not connected, 0 is returned.
Note: This
function is a D3 extension. It is not part of libc.a.
Example(s)
* Get our own pid pid=%pgetpid(system(22))