Skip to main content
Version: 20 R7 BETA

BRING TO FRONT

BRING TO FRONT ( process )

ParameterTypeDescription
processIntegerProcess number of the process to pass to the frontmost level

This command is not thread-safe, it cannot be used in preemptive code.

Description

BRING TO FRONT brings all the windows belonging to process to the front. If the process is already the frontmost process, the command does nothing. If the process is hidden, you must use SHOW PROCESS to display the process, otherwise BRING TO FRONT has no effect.

The Main and Design processes can be brought to the front using this command.

Note: When the process contains several windows and you want to pass a specific one to the front, it is preferable to use, for example, the SET WINDOW RECT command.

Example

The following example is a method that can be executed from a menu. It checks to see if ◊vlAddCust_PID is the frontmost process. If not, the method brings it to the front:

 If(Frontmost process#◊vlAddCust_PID)
    BRING TO FRONT(◊vlAddCust_PID)
 End if

See also

HIDE PROCESS
Process state
SHOW PROCESS