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

Inserts a table in the active Word document.

 
The table can be inserted at the current position or at a bookmark position.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('WINSERTTBL')

CHGVAR

VAR(&PARM1) VALUE('

Columns=Columns number

;Rows=Rows number

[;Bookmark="Bookmark name"]

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

&PARM2 &RESULT)

MONMSG

MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR))

 

Parameters

 

Parameters

 

Parm1

Columns = number of columns in the table.

 

Rows = number of rows in the table.

 

Bookmark = name of the bookmark where the table will be inserted. By default the table is inserted at the current position.

 

 

Example

 

CHGVAR

VAR(&CMD) VALUE('WINSERTTBL')

CHGVAR

VAR(&PARM1) VALUE('Bookmark="table";Rows=5;Columns=6')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

&PARM2 &RESULT)

MONMSG

MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR))

 

 

See also

WGOTOTBL

WINSERTROW

WINSERTCOL