Squish Bases in QB?

 BBS: Inland Empire Archive
Date: 04-07-92 (20:55)             Number: 134
From: FRANCOIS ROY                 Refer#: 36
  To: HARVEY PARISIEN               Recvd: NO  
Subj: Squish Bases in QB?            Conf: (2) Quik_Bas
 >On (06 Apr 92) Francois Roy wrote to Gene Buckle...

 FR> So far, I have only managed to READ the Squish bases; I don't feel
 FR> confident enough yet to go and ENTER messages in there...

 >Very interested in your approach Francois.  Will you post it?

 Ok, first, here are the structures (at least what I could
make of them: there are more #define's and #ifdef's than
useful info in that C stuff).  The next msg explains how I
use them.

TYPE SQIDX      ' .SQI file: one of these per message (12 bytes)
  OFFST  AS LONG
  UMSGID AS LONG
  HASH   AS LONG
END TYPE

TYPE SQBASE     ' .SQD database header (256 bytes): 1 per .SQD file
  SLEN    AS INTEGER
  RSVD1   AS INTEGER
  NUMMSG  AS LONG       ' No of msgs in area
  HIMSG   AS LONG       ' Highest msg number (same as NUMMSG)
  SKIPMSG AS LONG       ' # of msgs to protect from autoKill
  HIWATER AS LONG       ' Highwatermark
  UID     AS LONG       ' # of next UMSGID to use
  BASEID  AS STRING * 80' Name (incl path) of this message base
  FBEGIN  AS LONG       ' Offset to 1st frame
  FLAST   AS LONG       ' Offset to last frame
  FFBEGIN AS LONG       ' Offset to 1st free frame
  FFLAST  AS LONG       ' Offset to last free frame

  FEND    AS LONG       ' Offset to end of file
  MAXMSGS AS LONG       ' # of msgs to keep
  MAXDAYS AS INTEGER    ' # of days to keep msgs for
  SZSQHDR AS INTEGER    ' Size of SQHDR (32 bytes)
END TYPE

TYPE SQHDR
  ID     AS LONG
  NEXTF  AS LONG
  PREVF  AS LONG
  FLEN   AS LONG
  MSGLEN AS LONG
  CLEN   AS LONG
  FTYP   AS INTEGER
  RSVD   AS INTEGER
END TYPE

--- msgedsq 2.0.5
 * Origin: R&D BBS 'The VAX Heaven' {819/772-2952} 9600 HST/V32 (1:163/506)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET