Assigns values to cells of a Word table.
Syntax
CHGVAR VAR(&CMD)VALUE('WSETLINE')
CHGVAR VAR(&PARM1)VALUE('Values of cells')
CHGVAR VAR(&PARM1)VALUE('Formats of cells')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT +
&PARM1 &PARM2 &RESULT)
MONMSG MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR))
Parameters
Parameters |
|
Parm1
Parm2
|
NUMFMT(d [DECPOINT=p] [GRPPOINT=g]) with
: PROP sets
the value of a property for the contents of the corresponding cell.
|
|
Example
CHGVAR |
VAR(&CMD) VALUE('WSETLINE') |
CHGVAR |
VAR(&PARM1) VALUE('%INS%Valeur colonne 1%SEP%Valeur Colonne 2 & 3%MRG%%SEP%12300%SEP%') |
CHGVAR |
VAR(&PARM2) VALUE('%SEP%PROP(Font.Italic)=True;PROP(Par+ agraphs.Item(1).Alignment)=wdAlignParagraph+ Right%SEP%NUMFMT(2)') |
|
|
In this example, PARM1 contains values.
%INS% inserts a new line.
« Column 1 value » is assigned to first cell.
« Columns 2 & 3 values » is assigned to 2nd cell.
Cells #2 and #3 are merged with %MRG%.
« 123,00 » is assigned to 4th cell.
Last
%SEP% moves current position to the next cell.
If the table contains only 4 columns, current position is moved to next line
beginning.
PARM2 contains formats :
PARM2 begins with %SEP%, so, 1st cell has no particular format.
2nd cell (merged with 3rd cell) will be italics, right aligned.
4th cell is digital with two decimals.
See also