*/
Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?
*/

View \TUTOR09.PAS

Halcyon version 3.0

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


program Tutor09;
{$N+,E+}          {Required for floating point number handling}
uses
   CRT,
   GSOB_DBF,
   GSOB_VAR;
var
   MyFile  : GSO_dBaseFld;
begin
   ClrScr;
   MyFile.Init('TUTOR1');
   MyFile.Open;
   MyFile.GetRec(Bttm_Record);
   MyFile.LogicPut('PAIDFLAG',true);
   MyFile.PutRec(MyFile.RecNumber);
   MyFile.GetRec(Top_Record);
   while not MyFile.File_EOF do
   begin
      write(MyFile.DelFlag:6,'  ',MyFile.RecNumber:4,'  ',
              'PAIDFLAG is Set ',
              MyFile.LogicGet('PAIDFLAG'));
      if MyFile.LogicGet('PAIDFLAG') then
         writeln('******')
      else writeln;
      MyFile.GetRec(Next_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.