PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > XLWAIT command
XLWAIT command

Wait for an EXCEL event.

The AS/400 program waits for the closing of Excel (EXCELCLOSE), or an action on the custom menu (XLMENU command), to continue its execution. 

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('XLWAIT')

CHGVAR

VAR(&PARM1) VALUE('[BackPrint=Value]')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

Parameters

 

Parameters

 

Parm1

The BackPrint property allows you to wait for a background print to finish.

Value is expressed in seconds. 0 = infinite.

 

 

Example

 

CHGVAR

VAR(&CMD) VALUE('XLWAIT')

CHGVAR

VAR(&PARM1) VALUE('BackPrint=10')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

See also

 

XLMENU

EXCELCLOSE