User login
|
|
Frontpage Sponsor
|
|
Poll
|
How big is your Baan-DB (just Data AND Indexes) 0 - 200 GB 16% 200 - 500 GB 28% 500 - 800 GB 2% 800 - 1200 GB 9% 1200 - 1500 GB 9% 1500 - 2000 GB 14% > 2000 GB 21% Total votes: 43 |
Baanboard at LinkedIn
|

|
|
|
By patvdv at 26 Feb 2008 - 21:57
|
wait.and.activate()
Syntax
long wait.and.activate( string progname(.) [, "arg1", "arg2", ...] )
Description
This activates the specified program. The calling program is put in a waiting state. Because the calling program has not ended, it retains all its values.
In the called program, the predefined variable background is set to 1. By testing this variable, the program can check whether it is running as a foreground or background process. If required, the functioning of the program can be made dependent on this.
When the called program ends, the calling program is fetched from the waiting state and reactivated, starting from the statement immediately following the wait.and.activate() call. Note that this happens only when the two processes belong to the same process group. 
Arguments
procname
|
The process to be activated. The argument can contain a session name (4GL programs) or the name of an object file (3GL programs).
|
arg1, arg2, ...
|
Use these optional arguments to pass arguments to the new process. The arguments are always converted to strings.
The new process can access these arguments with the argv$() function.
|
Return values
- 0 : process cannot be activated
- >0 : process ID of activated program
Context
Bshell function.
Related topics
|
|
All times are GMT +2. The time now is 07:04.