User's Guide

Global variables

You can unload a collection of global variables either with their current values or with values that you set.

You use the method dumpGlobals: to unload global variables with their current values, and dumpGlobal:withValue: to unload them with a new value. If you set new values, ENVY/App overwrites the values existing in the image into which the variables are being loaded.

Example: Unloading global variables

To unload a global variable named "One" with its current value and a global variable named "Two" with a value of 1000 into a file named both.ic, you use statements in the following code fragment:

"Step 1: Unload the global variables One and Two into both.ic."
| result |
(result := ApplicationDumper new)
   ...
   dumpGlobals: #(One);
   dumpGlobal: #Two withValue: 1000;
   ...
   dumpIntoFileNamed: 'both.ic' path: '.' using: ComponentMaps.
   ...


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]