Other


WAIT

Pause the program for a number of milliseconds. 1000 is one second.

 Syntax:

    PAUSE time
10 WAIT 200
20 WAIT A

BEEP

Make a beep sound.

 Syntax:

    BEEP
10 LET A = 0
20 BEEP
30 WAIT 500
40 LET A = A + 1
50 IF A < 8 THEN GOTO 20
60 END
                

RND

Gives a random number between 0 and 99.

 Syntax:

    RND
10 LET A = RND
20 LET B = RND % 10  // % is modulus
                

String elements

Read an element in a string to a variable.

 Syntax:

    GETCHAR varString , index , var
10 LET B$ = "1234567890"
20 GETCHAR B$,A,C
30 PRINT C
40 LET A = A + 1
50 IF C = 48 THEN END
60 GOTO 20
                
Character 0 is 48. See the table at the GET DATA function.

The screen output will be:
49
50
51
52
53
54
55
56
57
48
_


Next