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

Reads the value of a property of Word.

Word and Excel use the same Visual Basic Application objects. All objects and their properties can be displayed with Visual Basic object explorer (Tools – Macro – Visual Basic Editor (or Alt-F11) and Display – Object Explorer (or F2).

 

Syntax 1

 

CHGVAR

VAR(&CMD) VALUE('WGETPROP')

CHGVAR

VAR(&PARM1) VALUE('property path')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

&PARM2 &RESULT)

 

Parameters

 

Parameters

 

Parm1

Full path of the Word property.

The syntax of the path to the property follows the same rules as for XLGETPROP.

The value of the property is returned as a string in the &RESULT variable. 

RESULT

Value of the property specified in Parm1.

 

 

Example

 

CHGVAR                VAR(&CMD) VALUE('WGETPROP')

CHGVAR                VAR(&PARM1) VALUE('Selection.Font.Color')

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

                      &PARM1 &PARM2 &RESULT)

 

Syntax 2

Use of the Property parameter. Necessary if you use webservices.

 

CHGVAR

VAR(&CMD) VALUE('WGETPROP')

CHGVAR

VAR(&PARM1) VALUE('Property="Path_property"')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

&PARM2 &RESULT)

 

Parameters

 

Parameters

 

Parm1

Property= Full path of the Word property.

The syntax of the path to the property follows the same rules as for XLGETPROP.

The value of the property is returned as a string in the &RESULT variable. 

 

RESULT

Value of the property specified with the Property parameter.

 

 

Example

 

CHGVAR                VAR(&CMD) VALUE('WGETPROP')

 CHGVAR                VAR(&PARM1)  
                       VALUE('Property="Selection.Font.Color"')

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

                      &PARM1 &PARM2 &RESULT)

 

See also

 

WSETPROP