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

Allows to retrieve the content of:

         the current selection

         a bookmark

         a form field

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('WGETTEXT')

CHGVAR

VAR(&PARM1) VALUE('
[Bookmark="Bookmark name"]
[;Variable="Variable name"]
[;Field="Form field 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

 

 

 

 

 

 


Bookmark
: name of the bookmark whose value we want to retrieve.

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