*/
If you have a PH account, you can customize your PH profile.
*/

View \TUTOR13.PAS

Halcyon version 3.0

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


Program Tutor13;
uses
   CRT,
   GSOB_DBF,
   GSOB_DBS,
   GSOB_VAR;
var
   MyFile  : GSO_dBHandler;
   MIndx   : integer;
begin
   ClrScr;
   MyFile.Init('TUTOR1');
   MyFile.Open;
   MIndx := MyFile.IndexTo('TUTOR1LN','LASTNAME');
   MyFile.GetRec(Top_Record);     {Get the first record in the file}
   while not MyFile.File_EOF do   {Repeat until end-of-file}
   begin
      writeln(MyFile.FieldGet('LASTNAME'),' ',
              MyFile.FieldGet('FIRSTNAME'),'  ',
              MyFile.FieldGet('BIRTHDATE'));
      MyFile.GetRec(Next_Record); {Get the next sequential record}
   end;
   MyFile.Close;
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.