Please enable JavaScript to view this site.

ESL Documentation

When a program is saved with a save program as statement, the values of global and Application variables are saved with it; for example:

 

integer Min is 10

global integer NewMax is 20

 

response to ChangeSize

    copy 15 to NewMax

    copy 13 to Min

 

response to StopSign

    save program as "revised.web"

 

After ChangeSize and StopSign are selected, the value of the application variable Min is 13; the value of the global variable NewMax is 15. These values are used when the binary file created by the save program as statement is run, unless control is transferred to it from another program, with the change to program statement, that has global variables. If that program contains the global variable NewMax, the saved value are overwritten.