Deletes one or all bookmarks in a document.
Syntax
|
CHGVAR |
VAR(&CMD) VALUE('WBOOKMDEL') |
|
CHGVAR |
VAR(&PARM1) VALUE('Bookmark="Bookmark name"') |
|
CHGVAR |
VAR(&PARM2) VALUE(' ') |
|
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
|
Parameters |
|
|
Parm1 |
Bookmark:
name of
the bookmark to delete in the current document, |
Note
This command is used if an application must insert another document template, or the same template with similar bookmark names, in the current document.
If the bookmark names of the inserted document already exist in the current document, then Word retains the existing bookmarks.
Example
|
CHGVAR |
VAR(&CMD) VALUE('WBOOKMDEL') |
|
CHGVAR |
VAR(&PARM1) VALUE('*ALL') |
|
CHGVAR |
VAR(&PARM2) VALUE(' ') |
|
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT)
|
|
CHGVAR |
VAR(&CMD) VALUE('WINSERTF') |
|
CHGVAR |
VAR(&PARM1) VALUE('File="%MASTERS%\MyDocument.docx" + Bookmark ="\EndOfDoc"') |
|
CHGVAR |
VAR(&PARM2) VALUE(' ') |
|
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
|
MONMSG |
MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR)) |