Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SAVE
◄Up► ◄Contents► ◄Index► ◄Back►
─────SAVE───────────────────────────────────────────────────────────────────
Action
Causes a procedure's variables to retain their values between calls.
Syntax
SAVE [names]
Parameter Description
names One or more names of variables, arrays, or
common blocks. Enclose the names of common
blocks in slashes. Separate multiple names
with commas. If no names are specified, all
allowable items in the program unit are saved.
Remarks
The SAVE statement does not allow:
■ An item to appear more than once
■ Formal argument names
■ Procedure names
■ Names of items in a common block
■ Names of items in an AUTOMATIC statement
Within a program, a common block that is saved in one subprogram
must be saved in every subprogram containing that common block.
See Also: ◄AUTOMATIC►
Example
SAVE /mycom/, myvar
-♦-