
The Inspector
1 + 2 + 3 + 4 + 5into the Inspector. You can evaluate the code in one of two ways:

FIGURE 8.1 : Executing the selected NewtonScript.

FIGURE 8.2 : Executing the NewtonScript on the line with the insertion point.

FIGURE 8.3 : Results of executing NewtonScript code.
You may want to stop the Inspector from printing out the value of the code it is executing (for instance, you may be assigning a large frame or array to a variable). To suppress the execution echo, add a nil statement at the end of your code line or block. Since the value of a sequence of statements is the value of the last statement, only nil will be echoed. x := [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
x := [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; nil;
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996