Allows to retrieve the content of:
• the current selection
• a bookmark
• a form field
Syntax
CHGVAR |
VAR(&CMD) VALUE('WGETTEXT') |
CHGVAR |
VAR(&PARM1)
VALUE(' ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
MONMSG |
MSGID(LNC0000) EXEC(GOTO CMDLBL(ERROR)) |
Parameters
Parameters |
|
Parm1
|
Variable: name of the variable whose value we want to retrieve. Field: name of the form field whose value we want to retrieve. If Parm1 is empty, the current selection is retrieved.
|
RESULT |
Content of the specified item.
|
Example
Retrieve the value of a bookmark:
CHGVAR VAR(&CMD) VALUE('WORDOPEN')
CHGVAR VAR(&PARM1) VALUE('C:\TEMP\FORM.DOCX')
CHGVAR VAR(&PARM2) VALUE('VISIBLE')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)
CHGVAR VAR(&CMD) VALUE('WGETTEXT')
CHGVAR VAR(&PARM1) VALUE('Bookmark="FF03"')
CHGVAR VAR(&PARM2) VALUE(' ')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)
See also
• WSELECT