476 INPUT If more than one string or value is to be input at a time then the variable identifiers have to be separated from each other. In BASIC this was done by using commas, eg INPUT NAME$, AGE, HEIGHT In BASIC II either commas or semicolons may be used, eg INPUT NAME$, AGE; HEIGHT When entering numerics however, these should be separated by commas as before, not semicolons. INSTR In BASIC II, INSTR has been extended such that an instruction such as PRINT INSTR("l","Hello") will return the value 0. This is useful in that a statement such as X=INSTR(A$,B$) can be included inside a procedure or function without having to check that is longer than .
ON ERROR In BASIC II, the comand ON ERROR GOTO... can be used with any line number. (In BASIC, ON ERROR GOTO 9999 , for example, could not be used). OPENIN and OPENUP In both BASIC and BASIC II an existing file can be opened to allow data to be read or altered, or to allow more data to be added to the end. In BASIC, this function was performed by the instruction OPENIN . In BASIC II it is done by OPENUP . Since these keywords give exactly the same result, the token for them both is &AD. Hence, if a program containing the instruction OPENUP is written on a BBC Microcomputer containing BASIC II then the instruction will be tokenised to &AD.
If this program is then saved and loaded into a machine containing BASIC, the program will work in exactly the same way, but when listed it will display the instruction as OPENIN . This will apply the other way around as well so existing programs do not need to be altered to run in BASIC II.