When using LAUNCHER Office commands or API programs, the parameters accept special values LAUNCHER Office processed.
These special values allows to define Windows or LAUNCHER Office environment properties.
• %LNCDIR%
This
special value indicates the directory from which LAUNCHER Office server was
launched on the PC.
Default directory is « C:\Program Files\LAUNCHER<X> ».
Example :
CHGVAR VAR(&PARM1) VALUE(‘%LNCDIR%\Samples\Model.dot’)
• %CHR(n)
Allows
to define a character with its ASCII value.
n is a decimal number from 0 to 255.
Example :
CHGVAR VAR(&PARM1) VALUE(‘Ligne 1%CHR(10)Ligne2’)
%CHR(10) inserts a character « section jump ».
• %PARA% or %LF%
Allows
to insert a skip a line in a Word text or electronic message.
%LF%, allow to insert a return to the line in the same Excel cell.
NB :
%LF%,
use for LAUNCHER Office version > to v 2.0.41
Example :
CHGVAR VAR(&PARM1) VALUE(‘Paragraphe 1%PARA%Suite’)
• %EURO%
Inserts
EURO (€) symbol in text.
Example :
CHGVAR VAR(&PARM1) VALUE(&VAL *CAT ‘ %EURO%’)
• %TAB%
Inserts Tab character in text.
• %CONID%
Inserts
current connection LAUNCHER ID number.
This is a sole number from 1 to simultaneous accepted connections maximum
number.
This ID is useful in order to generate temporary and sole file names.
• %NONE%
Initialises PARM2 as %NONE% if one want to clear a bookmark content
• %TEMP%
If the word within % characters is Windows environment variable, it will be replaced with its value.
Example:
CHGVAR VAR(&PARM1) VALUE(‘%TEMP%\file.txt’)
%TEMP% indicate the temporary Windows directory, as define in its
environment.
• %SEP%
To pass to the following cell.
If one were positioned on the last column of the table, one passes at beginning of the following line.
Example:
CHGVAR VAR(&PARM1) VALUE(‘%INS%Value column 1%SEP%Value Column
2 & 3%MRG%%SEP%12300%SEP%')
• %INS%
To insert a new line and to positon at the beginning of the new line.
Example:
CHGVAR VAR(&PARM1) VALUE(‘%INS%Value column 1%SEP%Value Column
2 & 3%MRG%%SEP%12300%SEP%')
• %MRG%
To merge the cuurent cell with the following one.
Exemple:
CHGVAR VAR(&PARM1) VALUE(‘%INS%Value column 1%SEP%Value Column
2 & 3%MRG%%SEP%12300%SEP%')
• %CRLF%
Allows to insert a return to the line in the same Word cell.