56

ON...GOTO (see Chapter 5)
Use
ON. . - GOTO isa relicfrom older BASICs, included to make BASIC 2 plus
compatible.
Syntax ON condition GOTO [locationt)[, [locafion2))[, [location3))
where condition is an integer-expression
locationt, location2,location3, ... etc are locations.

OPEN (see Chapter 8)
Use OPEN associates a given stream with a device orfile.
Syntax OPEN [I/)stream-number [,) WINDOW window-number
or OPEN [I/)stream-number [,) INPUT filename if,) LOCK lock-type)
or OPEN [I/)stream-number [,) [exist) OUTPUT filename if,) LOCK lock-type)
or OPEN [I/)stream-number [,) [exist) APPEND filename if,) LOCK lock-type)
or OPEN [I/)stream-number [,) [exist) RANDOM random-spec if,) LOCK lock-type)
or OPEN [I/)stream-numbor [,) [exist) GRAPHICS filename graphics-spec
or OPEN [I/)stream-number [,) PRINT [printer-number)
or OPEN [I/)stream-number [,) DEVICE desice-number

OPEN...APPEND (see Chapter 8)
Use OPEN file for output. (See also OPEN...OUTPUT.(
Syntax OPEN [I/)stream-number [,) [exist) APPEND filename if,) LOCK lock-type) where existis NEW or OLD

OPEN...DEVICE & OPENGRAPHICS (see Chapter 8)
Use
Thesefurms of OPEN associate a given stream with a GEM graphics device or a
Metafile.
Syntax OPEN [I/)stream-number [,) DEVICE device-number
OPEN [I/)stream-number [,) [exist) GRAPHICS filename graphicsspec
where existis NEW or OLD
desrice-numberis an integer-expression, giving a value inthe range 0.32767. graphics-spec is if,) SIZE m-withh,m-height) if.) SPACE p-widlh[,p-heighl)) m-width and m-height are numeric-expressions, giving positive, non-zero, values. p-width and p-height are integer-expressions, giving values inthe range 1.32768.
56

56