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

Allows to list the different scanners that will be able to be used by the SCAN command.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('LISTSCAN')

CHGVAR

VAR(&PARM1) VALUE(' ')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

&PARM2 &RESULT)

 

Parameters

 

Parameters

 

RESULT

The RESULT parameter will contain the scanners list, separated by semicolon. At the beginning, RESULT will still contain : "*MSG;".

 

 

Example

 

   PGM                                               

   DCL        VAR(&RESULT) TYPE(*CHAR) LEN(2000)     

   LNCOPEN                                           

                                                     

   LNCCMDR    CMD(LISTSCAN) RESULT(&RESULT)          

   LNCCMD     CMD(NOP) PARM1(&RESULT)                

   LNCCLOSE                                          

   ENDPGM                                            

 

For instance,  &RESULT : *MSG;HP LJ100 M175 Scan