Next: return Up: MacAnova Help File Previous: restore()   Contents

restorenames()

Usage:
restorenames()
restorenames(name1 [,name2, ...]), name1, name2, ... are any of these
  variable names: HOME, DATAFILE, DATAPATHS, MACROFILES, HELPFILES,
  HELPINDICES



Keywords: files, general, structures
                                  Usage
restore() does not overwrite certain variables containing information on
the location of data, macro and help files.  These variables are HOME,
DATAFILE, DATAPATHS, MACROFILES, HELPFILES and HELPINDICES.  Instead,
it creates a structure SAVEDNAMES containing the values of these
variables in the workspace file being restored.  restorenames() is
provided to make it easy to overwrite any or all of these variables
after restore().

restorenames() restores all the variables in SAVEDNAMES.

restorenames(name1 [, name2, ...]) restores just the named variables.
name1, name2, ... must be names of components of SAVEDNAMES, normally
HOME, DATAFILE, DATAPATHS, MACROFILES, HELPFILES and HELPINDICES.

                                Examples
Example:
  Cmd> restore("workspace.030320")

  Cmd> restorenames(MACROFILES, HELPFILES)

                            Cross references
See also restore(), save(), getdata(), getmacros(), addmacrofile(),
adddatapath(), addhelpfile(), 'workspace'.


Gary Oehlert 2005-08-12