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

 Searchs for text in the current document.

 

Syntax

 

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

CHGVAR                VAR(&PARM1)VALUE('Text="Text to search"')

CHGVAR                VAR(&PARM2)VALUE(' ')

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

                      &PARM2 &RESULT)

 

 Parameters

 

Parameters

 

Parm1

Text =Text to be found between double quotes.

 

RESULT

If the text is found the *TRUE value is returned in the &RESULT parameter. If not the *FALSE value is returned.

 

 

 

Example

 

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

CHGVAR VAR(&PARM1) VALUE('FILE ="C:\TEMP\TEST.DOC"')

CHGVAR VAR(&PARM2) VALUE('VISIBLE')

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

&PARM2 &RESULT)

 

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

CHGVAR VAR(&PARM1) VALUE('Text="Aura"')

CHGVAR VAR(&PARM2) VALUE(' ')

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

&PARM2 &RESULT)

 

Other example

 

LNCCMD CMD(WFINDTEXT) PARM1('Text="1234"')