Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
26%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
12%
1500 - 2000 GB
12%
> 2000 GB
21%
Total votes: 34

Baanboard at LinkedIn


Reference Content

 
wait.and.activate()
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

0
No votes yet


All times are GMT +2. The time now is 07:58.


©2001-2018 - Baanboard.com - Baanforums.com