Vtech PreComputer Power Pad Plus User Manual - Page 51

Reference - price

Page 51 highlights

REFERENCE SECTION The REFERENCE SECTION contains a brief explanation of all the commands and statements you will use in this chapter. Refer to this when you need help. CLEAR The CLEAR statement is used to assign more memory space for the string variables. Example: 10 Clear 100 This command will assign 100 bytes of memory for strings. If the CLEAR command is not used, the computer will assume the number of bytes of memory for strings to be 50. The use of the CLEAR command only will reserve the same number of bytes as the default value. However, if a value follows the CLEAR command, the computer will assign the number of bytes of that value. If you want to use more strings in your program, set this number to a larger one but, at the same time, you will have less space for your program. CONT Also see STOP This command causes the program to resume executing after encountering the BASIC command called STOP. The program will carry on with the next statement after STOP. You can type CONT to resume the program after you hit the SHIFT and BREAK keys. DIM Line # DIM array-name (array-size). The DIM command reserves space for one dimensional numeric or string arrays. The arrayname may be up to 6 characters long but only the first 2 characters are valid. For a string array the last character must be a $. The array can contain up to 100 elements (0-99). Example: 10 DIM FRIEND$(50) 10 DIM PRICE(19) 47

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

47
REFERENCE SECTION
The
REFERENCE SECTION
contains a brief explanation of all the commands and
statements you will use in this chapter.
Refer to this when you need help.
CLEAR
The
CLEAR
statement is used to assign more memory space for the string variables.
Example:
10
Clear 100
This command will assign 100 bytes of memory for strings.
If the
CLEAR
command is
not used, the computer will assume the number of bytes of memory for strings to be 50.
The use of the
CLEAR
command only will reserve the same number of bytes as the default
value.
However, if a value follows the
CLEAR
command, the computer will assign the
number of bytes of that value.
If you want to use more strings in your program, set this
number to a larger one but, at the same time, you will have less space for your program.
CONT
Also see STOP
This command causes the program to resume executing after encountering the
BASIC
command called
STOP
. The program will carry on with the next statement after
STOP
.
You can type
CONT
to resume the program after you hit the
SHIFT
and
BREAK
keys.
DIM
Line # DIM array-name (array-size).
The
DIM
command reserves space for one dimensional numeric or string arrays.
The array-
name may be up to 6 characters long but only the first 2 characters are valid.
For a
string array the last character must be a $.
The array can contain up to 100 elements
(0-99).
Example:
10
DIM FRIEND$(50)
10
DIM PRICE(19)