56
LEN
This function computes the length of the string argument, which must be in brackets. So
if you type
PRINT LEN ("JOHN")
the computer will return the result 4. This is telling
you that there are 4 characters in the string "JOHN". Blank spaces have the value of
characters. Thus if you put in spaces "J O H N", it comes out as 7 characters.
STR$
The STR$ function changes a number argument into a string. Let us take a look at the
following example and see how it works.
Example
:
A$=STR$(73)
This is the same as saying A$="73".
Here is a sample program:
Example
:
10 A$=STR$(7*3)
20 B$=A$+"BIG"
30 PRINT B$
RUN
21BIG
VAL
VAL works like STR$ but in reverse. It changes a string argument into a number. Look
at the following short program.
Summary of Contents for PreComputer Prestige
Page 1: ...COURSE BOOK...