*/
Written some cool source code? Upload it to Programmer's Heaven.
*/

View \TUTOR11.PAS

Halcyon version 3.0

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


Program Tutor11;
{$N+,E+}          {Required for floating point number handling}
uses
   CRT,
   GSOB_DBF,
   GSOB_VAR;
var
   MyFile  : GSO_dBaseFld;
   MFields : integer;
   Ch      : char;
begin
   Ch := ' ';
   with MyFile do
   begin
      Init('TUTOR1');
      Open;
      GetRec(Top_Record);
      while (not File_EOF) and (Ch <> #27) do
      begin
         ClrScr;
         Writeln('Record Number ',RecNumber,' of ',NumRecs);
         Writeln;
         for MFields := 1 to NumFields do
            writeln(MFields:3,'   ',
                    FieldName(MFields):10,': ',
                    FieldGetN(MFields));
         writeln;
         writeln('Deleted Status = ',DelFlag);
         Ch := ReadKey;                    {wait for keypress}
         GetRec(Next_Record);
      end;
      Close;
   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.