program DB_Xpl05;
uses
   CRT,
   DOS,
   GS_KeyI,
   GS_dBFld,
   GS_dBase;
var
   Health  : GS_dBFld_Objt;

begin
   ClrScr;
   Health.Init('HEALTH');
   Health.Open;
   Health.Index('FOODNAME');
   Health.GetRec(Top_Record);
   while (Health.FieldDisplayScreen) and (not Health.File_EOF) do
   begin
      if GS_KeyI_Chr = Kbd_PgUp then
         Health.GetRec(Prev_Record)
      else
         Health.GetRec(Next_Record);
   end;
   Health.Close;
end.
