home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #3.1 / RBBSIABOX31.cdr / v2eg / undoc.qb < prev    next >
Text File  |  1987-06-16  |  3KB  |  66 lines

  1.  
  2. Undocumented features of Microsoft QuickBASIC 2.0, 2.01 & 3.0
  3.  
  4. 1.   EGA 43-line mode:
  5.  
  6.      QB2 and QB2.01 will work in EGA 43-line mode.  Using the MODE43.COM
  7.      program that came with QB3, I was able to run the editors of the
  8.      previous version in EGA 43-line mode.  All 43 lines are available for
  9.      editing purposes.  On the other hand, the execution and debug screens
  10.      only use the top 25 lines of the 43 available.
  11.  
  12.      MODE43 switches the EGA into 43-line mode via Function 11h of the
  13.      BIOS VIDEO interrupt 10h.
  14.  
  15. 2.   /F switch:
  16.  
  17.      Syntax:   qb /f filename
  18.                      or
  19.                qb filename /f
  20.  
  21.      This switch is equivalent to the "EXE" compile option.  It will
  22.      compile your source directly to an executable file.  The runtime
  23.      module, BRUNxxxx.EXE, is needed to run the executable file.  Other
  24.      switches can be used with /F.  Please note that the semi-colon
  25.      normally required to compile via the command line is NOT required in
  26.      this case.
  27.  
  28.      This switch bypasses the LINK step usually needed when compiling
  29.      programs via the command line.  I find this very useful when using
  30.      the MASM MAKE utility to re-compile program modules.
  31.  
  32. 3.   /Z switch:
  33.  
  34.      Syntax:   qb /z filename
  35.  
  36.      This switch is equivalent to the "MEMORY" compile option.  It will
  37.      compile your source to memory and run it.  Other switch can be used
  38.      with /Z.  As above, the semi-colon is not required.  Please note the
  39.      syntax.  It appears that switching the filename and the /Z switch
  40.      around does not work as it does with /F.
  41.  
  42. 4.   /N and /P switches:
  43.  
  44.      These switches are looked for by QB when parsing the command line and
  45.      appear to be ignored.
  46.  
  47. 5.   Metacommands:
  48.  
  49.      ALL of the metacommands from pre-2.0 versions of QB can be used with
  50.      the later versions.  The only metacommands mentioned in the QB2
  51.      manual are $INCLUDE, $DYNAMIC and $STATIC.  All of the other
  52.      metacommands are parsed from the program source and partially
  53.      processed.  However, it appears that the only one that does anything
  54.      meaningful is $MODULE.  $MODULE allows you to specify a name of the
  55.      compiled OBJ file other than the default, usually the same name as
  56.      the main source file.
  57.  
  58.  
  59. If any other undocumented features of QuickBASIC (any version) have been found,
  60. I would greatly appreciate hearing about them.
  61.  
  62. Michael Addy
  63. [74017,2437]
  64.  
  65.