PickBASIC / FlashBASIC
%wait() function
.mdThe %wait() function returns the exit code of the child processes created by the current process.
For Windows: Not Supported
Syntax
var = %wait(&status)
Description
The status is returned in the integer status, passed by its address.
Note that even though status is an integer, only the lower 16 bits are updated by the system call. See the UNIX system documentation for more details on the format of the returned status.
Note: Before passing the address of status, the
variable must have been initialized to an integer value.