Debugging Your Application
Here are some examples that demonstrate these differences among Print
, Display
, and Write
. The following code for Print
:
Print("Hello"); Print($W); Print("orld");produces
"Hello" $W "orld"Using
Display
instead:
producesDisplay
("Hello");Display
($W);Display
("orld");
"Hello"$W"orld"Finally, using
Write
for the same text:
producesWrite
("Hello");Write
($W);Write
("orld");
HelloWorld
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996