Page 176 - The Ultimate Palm Robot
P. 176
Color profile: Generic CMYK printer profile
Composite Default screen
Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 7
Chapter 7 Essential Robot Programming Strategies 159
Every time the user taps the button, the program will display a message
box that asks the user to enter a name.
If the user enters a non-empty string, the program will change the dis-
played phrase to “Hello, name.”
To find programs, HotPaw looks for memos in the MemoPad with a first
line that begins with the number character (#), followed by some text that
ends with .bas. So here’s the first line of our program:
#HelloWorld.bas
Note that even though there are no space characters in the line above,
HotPaw Basic doesn’t care how many letters, numbers, or other characters are
in the first line, as long as it begins with # and ends with .bas.
P:\010Comp\Bots\880-6\ch07.vp
Monday, May 12, 2003 4:29:21 PM