VTech PreComputer Prestige Course Manual page 58

Learning toy
Table of Contents

Advertisement

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.
you that there are 4 characters in the string "JOHN".
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.
Blank spaces have the value of
56
This is telling

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PreComputer Prestige and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents