ener.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Illegal function call (ERR: 5)
■ You are attempting to give an improper or out-of-range
  argument to a Basic statement. Examples of such errors are:
 
  • A negative or unreasonably large subscript.
 
  • A negative number raised to a power that is not an
    integer.
 
  • A negative record number when using GET or PUT.
 
  • An I/O function or statement (LOC or LOF, for example)
    on a device that does not support it.
 
  • Concatenated strings that create a string longer than
    32,767 characters.
 
  • A BLOAD or BSAVE operation directed to a non-disk
    device.
 
  • A graphics statement in an invalid screen mode or when
    forms are showing.
 
  • A COLOR statement value that is not supported by the
    current screen mode.
 
  • A LOCATE statement value of 0 or a value greater than
    the available number of rows or columns.
 
  • A SCREEN statement value that is not supported by
    your video adapter.
 
  • An ISAM BEGINTRANS statement with a transaction already
    pending.
 
  • An ISAM COMMITTRANS statement without a transaction
    pending.
 
  • An ISAM ROLLBACK statement that refers to a savepoint that
    does not exist, or a ROLLBACK ALL statement with no
    transaction pending.
 
■ If you need additional help, move the cursor to a keyword
  and press F1 to open the Help window.