VAL

VAL works like STR$ but in reverse. It changes a string argument into a number. Look at the following short program.

Example:

10A$=“33”

20B$=“20”

30C=VAL(A$+B$)

40D= VAL (A$) + VAL (B$)

50PRINT C;D

RUN 3320 53

GRAPHICS FUNCTION

PGET function

Returns the color attribute of a specified pixel.

PGET(X, Y) = n

n

Returns

 

 

 

1

the

current coordinates(X, Y) turns the pixel status ON

0

the

current coordinates(X, Y) turns the pixel status OFF

 

 

 

SUBSTRINGS

It is also possible to get substrings of strings. A substring is a part of a string. For example: “ABC” is a substring of “ABCDE”. The following three functions operate on substrings.

LEFT$ (A$,N)

This will return the substring from the left-most of string A$, the first character to the Nth character.

54