Home > CBM > BASIC > Keywords > Off
180 Subpages: (divide), (equal), (less), (minus), (more), (multiply), (plus), (power), Abs, And, Append, Asc, Atn, Auto, Backup, Bank, Begin, Bend, Bload, Boot, Box, Bsave, Bump, Catalog, Char, Chr, Circle, Close, Clr, Cmd, Collect, Collision, Color, Concat, Cont, Copy, Cos, Data, Dclear, Dclose, Dec, Def, Delete, Dim, Directory, Dispose, Dload, Do, Dopen, Draw, Ds, Ds string, Dsave, Dverify, El, Else, End, Envelope, Er, Err, Exit, Exp, Fast, Fetch, Filter, Fn, For, Fre, Get, Get num, Getkey, Go, Gosub, Goto, Graphic, Gshape, Header, Help, Hex, If, Input, Input num, Instr, Int, Joy, Key, Left, Len, Let, List, Load, Locate, Log, Loop, Mid, Monitor, Movspr, New, Next, Not, On, Open, Or, Paint, Peek, Pen, Pi, Play, Pointer, Poke, Pos, Pot, Print, Print num, Pudef, Quit, Rclr, Rdot, Read, Record, Rem, Rename, Renumber, Restore, Resume, Return, Rgr, Right, Rlum, Rnd, Rreg, Rspcolor, Rsppos, Rsprite, Run, Rwindow, Save, Scale, Scnclr, Scratch, Sgn, Sin, Sleep, Slow, Sound, Spc, Sprcolor, Sprdef, Sprite, Sprsav, Sqr, Sshape, St, Stash, Step, Stop, Str, Swap, Sys, Tab, Tan, Tempo, Then, Ti, Ti string, To, Trap, Troff, Tron, Until, Using, Usr, Val, Verify, Vol, Wait, While, Width, Window, Xor

KeywordAbbreviationToken (hex)Version(s)Classification
OFFO{Shift+F}FE 243.6, 7.0Preposition

Syntax 
KEY [ { ON | OFF | { key_number , definition } ]
 
 
Purpose 
Influence the behavior of other statements/commands.

 
 
Remarks 
The use of OFF (or ON) with the KEY command seems to be from the unreleased Commodore LCD (BASIC v3.6).  I believe it would turn off the display of function keys at the bottom of the screen on that machine.  Remnants of this code can be found in the ROMs of the Commodore 128 (v7.0); however it doesn't function and generates a unique error (see example).
 
On the C128 (v7.0), attempting to use this preposition as a command/statement generates the wrong error.  It generates UNIMPLEMENTED COMMAND ERROR unlike all normal prepositions which generate SYNTAX ERROR in the same context.
 
Example (C128):
KEY OFF

?UNIMPLEMENTED COMMAND ERROR
READY.
 
Contrast With 
ON 
 
See Also 
KEY
© H2Obsession, 2014