11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LESSON 7THE LET COMMAND, GLUING STRINGSThe LET command puts things into boxes. Enter and run10 PRINT "clr"20 LET W$= "TRUCK"40 PRINT W$<strong>Here</strong> is what the computer does:Line 10The computer clears the screen.Line 20 It sees that a box named "W$" is needed. It looks into its memory for it Itdoesn't find one because "W$" has not been used in this program before. So ittakes an empty box and writes "W$" on the front, and then puts the string"TRUCK" into itLine 40 The computer sees that it must print whatever is in box "W$". It goes to thebox and makes a copy of the string "TRUCK" which it finds there. It puts thecopy on the TV screen. The string "TRUCK" is still in box "W$".NAMES AND VALUESThis line makes a string variable:10 LETW$="MOPSEY"The name of the variable is W$.The value of the variable is put into the box.In this line, the value of W$ is "MOPSEY".45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!