source: SH_SHM/trunk/help/SDEF.HLP @ 206

Revision 16, 1.8 KB checked in by marcus, 15 years ago (diff)

r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines

Initial import

Line 
1command SDEF <name>[;<value>]
2============
3
4key: define symbol
5
6Defines a new symbol.  If the qualifier /GLOBAL is entered it is created
7in the global symbol set, otherwise in the current local symbol set.
8The symbol value is initialized to <value>, if <value> is omitted, the
9symbol is initialized to a zero-length string.  The length of a symbol name
10is restricted to 15 characters, the length of the symbol value to
1180 characters.
12
13The local symbol set is saved and restored on each command level, the
14global set is not.  That means, the global symbol set is accessable
15(reading and writing) from every command level, while the local set
16is accessable only from the current level.  Each call of a command file
17saves the current local set and creates a new (empty) one, each
18RETURN statement deletes the local symbol set and restores the parent one.
19
20If a symbol is defined in both symbol sets, the definition of the
21local set takes preference to the definition of the global set.
22
23
24parameters:
25
26<name>  ---  parameter type: string
27   Name of new symbol.  The length of the name is restricted to 15
28   characters.
29
30<value>  ---  parameter type: string
31   Initialization value of new symbol.  The length of <value> is
32   restricted to 80 characters.
33
34
35qualifiers
36
37/GLOBAL
38   The symbol is created in the global symbol set (see above).
39
40/REPLACE
41   A previously defined symbol of the same name in the same set is
42   deleted before creating the new symbol.
43
44/CHECK
45   If the symbol is already defined, the SDEF command is ignored.
46
47
48Examples:
49
50   SDEF NEWSYM          ! defines local symbol "NEWSYM"
51
52   SDEF NEWSYM 1        ! defines local symbol "NEWSYM" and initialises
53                        ! it to "1"
54
55   SDEF/GLOBAL VAL TST  ! defines global symbol "VAL" and initialises
56                        ! it to "TST"
57
Note: See TracBrowser for help on using the repository browser.