ATTACH
Attach to a process.

Format
 Attach [Process_name] [/Qualifiers ... ]
 Process_nameThe name of the process to which to attach.

Qualifiers
/Fail=LABELLabel to which to branch if the statement fails.
If LABEL is %EXIT, exit the routine or loop.
If in a loop, and LABEL is %CONTINUE, continue the loop. If not in a loop, and LABEL is %CONTINUE, an error message displays.
 /Succeed=LABELLabel to which to branch if the statement succeeds.
If LABEL is %EXIT, exit the routine or loop. If in a loop, and LABEL is %CONTINUE, continue the loop. If not in a loop, and LABEL is %CONTINUE, an error message displays.
 /NofailDo not signal an error. Instead, set the
internal variable %FAIL.
 /NorepaintDo not repaint the screen after executing the statement.

Example
 Spawn "@MAIL/NOWAIT/PROCESS=MAIL_" & %PID
 ! Spawn a process running mail with
 ! a process name of MAIL_nnn.
 Loop
 Menu WHAT_TO_DO
 If %ITEM = "MAIL" then
 Attach "MAIL_" & %PID
 ! Attach to mail
 ! (it attaches back)
 Continue
 End_if
 End_loop