403
|
1 |
-*- mode: outline; coding: utf-8 -*-
|
|
2 |
|
|
3 |
* String.
|
|
4 |
|
|
5 |
* Variables.
|
|
6 |
|
|
7 |
Allowed chaacters for variable names: [a-z][A-Z][0-9] and '_'.
|
|
8 |
|
|
9 |
** Macros definition.
|
|
10 |
|
|
11 |
To define macro variable:
|
|
12 |
|
|
13 |
!define NAME "STRING"
|
|
14 |
|
|
15 |
To access to there value use such syntax:
|
|
16 |
|
|
17 |
${NAME}
|
|
18 |
|
|
19 |
** Variable definition.
|
|
20 |
|
|
21 |
To declare variable:
|
|
22 |
|
|
23 |
Var NAME
|
|
24 |
|
|
25 |
There are exist registers (predefined variable) through them passed args for
|
|
26 |
macros/functions/plug-ins:
|
|
27 |
|
|
28 |
$0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $R0, $R1, $R2, $R3, $R4, $R5, $R6, $R7, $R8, $R9
|
|
29 |
|
|
30 |
To assign value to variable use:
|
|
31 |
|
|
32 |
StrCpy $NAME "STRING"
|
|
33 |
|
|
34 |
To access to there value use such syntax:
|
|
35 |
|
|
36 |
$NAME
|
|
37 |
|
|
38 |
** Language strings.
|
|
39 |
|
|
40 |
To declare multilingual string use:
|
|
41 |
|
|
42 |
LangString NAME LANGUAGE_ID "STRING"
|
|
43 |
|
|
44 |
For 'LANGUAGE_ID' use '${LANG_ENGLISH}', '${LANG_RUSSIAN}', etc.
|
|
45 |
|
|
46 |
To access to there value use such syntax:
|
|
47 |
|
|
48 |
$(NAME)
|
|
49 |
|
|
50 |
** Standard language strings.
|
|
51 |
|
|
52 |
You can see list of such var under Contrib\Language Files\*.nlf files, which
|
|
53 |
loaded by 'LoadLanguageFile'.
|
|
54 |
|
|
55 |
To access to there value use such syntax:
|
|
56 |
|
|
57 |
$(^NAME)
|