HPlogo QUERY/iX Reference Manual > Chapter 4 QUERY/iX COMMANDS (cont)

MODE=

MPE documents

Complete PDF
Table of Contents

E0300 Edition 7 ♥
E1098 Edition 6

Changes the mode of access to the primary data base.

Syntax



  M[ODE]= mode number

For example:

  >MODE=3

Where mode number = 3

Parameter


mode number

is an integer from 1 to 8 representing the access mode you want to use.

Discussion


You can use this command to change your mode of access to the primary data base. If the MODE= command is entered, QUERY first closes the current primary data base before attempting to open the data base with the new access mode.

Example



  >MODE=6
  >AD INVENTORY
  ILLEGAL ACCESS
  >MODE=3
  >AD INVENTORY
  STOCK#          =>>6650D22S
  ONHANDQTY       =>>11
  SUPPLIER        =>>H & S SURPLUS
  UNIT-COST       =>>1395
  LASTSHIPDATE    =>>121585
  BINNUM          =>>3

  STOCK#          =>>//
  >

In the example above, mode 6 is specified. Since mode 6 does not allow write access to the primary data base, the user must change to a mode which allows such access. Then QUERY allows the addition of an INVENTORY entry.




LISTREDO


MULTIDB