*/
Know a good article or link that we're missing? Submit it!
*/

View \GSDMO_14.PAS

Halcyon version 3.0

Submitted By: Unknown
Rating: (Not rated) (Rate It)


program GSDMO_14;
{------------------------------------------------------------------------------
                               DBase File Maker

       Copyright (c)  Richard F. Griffin

       20 January 1993

       102 Molded Stone Pl
       Warner Robins, GA  31088

       -------------------------------------------------------------
       Program that creates a dBase file.

       Demonstrates the use of GS_DB4Build to create a dBase file.  A
       file 'MYFILE.DBF' will be created.

-------------------------------------------------------------------------------}


uses
   GSOB_DBF;

var

   MyFile : GSO_DB4Build;   {Creates a dBase IV file}
                            {Use GSO_DB3Build for a dBase III file}

begin
   with MyFile do
   begin
      Init('MyFile');
                     {Insert the fields into the file}
      InsertField('FIELD1','C',8,0);      {Character, length 8}
      InsertField('SECOND','D',8,0);      {Date (length 8)}
      InsertField('THIRD','L',1,0);       {Logical (length 1)}
      InsertField('FOURTH','N',6,2);      {Number, length 6, 2 Decimals}
                     {End insertion by calling Done to close the file}
      Done;
   end;
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.