🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.flame.pascal
Article #9

Re: help pascal basics

#9
From: Maynard Philbrook
Date: Thu, 06 Jan 2000 00:00
52 lines
2349 bytes
If it's going to be a simple project for a class then you can use simple block
file system.
type
    datarecord = record
        name:String[255];
        date:string[8];
        time:string[8];
       VideoTitle:string[64];
     end;
Var
  F:file of datarecord;
 R:DataRecord;
procedure addRec;
begin
  Seek(F, FileSize(F));
  write(F, R);
End;
begin
  AssignFile(F, 'databasename');
  Reset(F);
{$I-} // turn off io checking..
  read(F, R); // Read first record;
  if ioerror Then Rewrite(F); // if error then create data file for the first
time..
// edit your record ect////
 CloseFile(F);
Endl
 this is just a rough draft..




chris millar wrote:

> Hi I am a college student and I deparately need urgent help on pascal
> programming.
>
> I need to develop a simple program that can keep a video store booking
> system running.  I have chosen my data fields as Date of loan/return, what
> film(i.d number) and what time due back.
> I want to implement this using a 3 dimensional array, with a simple
> interface for the users.  I need to use file accessing methods too.  Can
> anyone steer me in the right direction or help me out.
>
> Thanks in advance.
>
> chris..
> chipmonk497@hotmail.com
> please reply to my mail address, anyone
>
> Thanks again
> .
Technical Details
Message-ID: <38742D46.F7C1CCFE@cyberzone.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <850k3u$q98$2@news8.svr.pol.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1043cf,c99eccfba7fc996
X-Google-Attributes: gid1043cf,public
X-Google-Thread: 111659,c99eccfba7fc996
X-Google-Attributes: gid111659,public
X-Google-Thread: 10eb32,c99eccfba7fc996
X-Google-Attributes: gid10eb32,public
X-Google-Thread: 10c950,c99eccfba7fc996
X-Google-Attributes: gid10c950,public
X-Google-Thread: 108ebd,c99eccfba7fc996
X-Google-Attributes: gid108ebd,public
From: Maynard Philbrook <jamie@cyberzone.net>
Subject: Re: help pascal basics
Date: 2000/01/06
Message-ID: <38742D46.F7C1CCFE@cyberzone.net>
X-Deja-AN: 568968130
Content-Transfer-Encoding: 7bit
References: <850k3u$q98$2@news8.svr.pol.co.uk>
X-Accept-Language: en,ja
Content-Type: text/plain; charset=us-ascii
X-Trace: 6 Jan 2000 01:33:04 -0500, 209.150.12.249
Organization: PC BIT Software
MIME-Version: 1.0
Reply-To: jamie@cyberzone.net
Newsgroups: alt.flame.pascal,borland.public.delphi.objectpascal,borland.public.turbopascal,comp.lang.pascal.ansi-iso,comp.lang.pascal.borland