home *** CD-ROM | disk | FTP | other *** search
- (*********************************************************************)
- (* Turbo Pascal Database Toolbox *)
- (* For the Macintosh *)
- (* Copyright (C) 1987 Borland International *)
- (* Toolbox version: 1.0 *)
- (* *)
- (* SetConst - Turbo Access Configuration Program *)
- (* *)
- (* Purpose: Customizes the Turbo Access unit for a particular *)
- (* Database (record and key(s)) structure. Also Allows *)
- (* programmer to control the memory requirements vs. *)
- (* retrieval speed of the Turbo Access system. *)
- (* *)
- (*********************************************************************)
- program SetConst;
- {$R SetConst.rsrc}
- {$U-}
- {$U ConstUser}
- uses MemTypes, QuickDraw, OSIntf, ToolIntf,
- PackIntF, PasInOut, ConstUser;
-
- {$I .types }
- { ^^ Include file with your type declarations }
- { for MaxDataType and MaxKeyType }
-
- procedure SetUserDefaults;
- { Uses the type definitions for MaxDataType and MaxKeyType
- to set MaxDataRecSize and MaxKeyLen. }
- begin
- DefaultMaxRecSize := SizeOf(MaxDataType);
- { Set to record definition type ^^ }
- DefaultMaxKey := SizeOf(MaxKeyType) - 1;
- { Set to key definition type ^^ }
-
- MaxMemory := MaxInt div 2;
- { Maximum size of Page Stack used to calculate defaults. }
- { You can set this value as high as to 32K i.e. MaxInt. }
-
- AlwaysUseDefaults := false;
- { If you want to always use the defaults set boolean to true. }
- ShowCompileInfo := true;
- { Set to false if you do not need Turbo Access Compilation directions. }
-
- end; { SetUserDefaults }
-
-
- begin
- SetUserDefaults;
- InitSetConst;
- if not AlwaysUseDefaults then
- if not UseDefaults then
- begin
- InitWorkSheet;
- SetConstants;
- end;
- FinishUp;
- end.
-