Menu

PalmRemoteTable.EOF do not work properly

Help
2004-04-16
2004-04-17
  • Denis Santana

    Denis Santana - 2004-04-16

    I'm using a basic loop to fectch a record from RemoteTable, pass to a local record, then delete the record in RemoteTable, then next....
    The problem is that never I get all the records, when the count is greater that 3, only get about 60 % of all records. Somebody have Any Idea?

    Yes, I can save the PalmTable to a localfile and then read from there, but I need to get it directly from the palm device.

    I'm using Delphi 7, Palm Tungsten T2, USB cradle.
    the code is like this:

    PalmRemoteTable.Open();
    while not PalmRemoteTable.EOF do
    begin
       MyRecord := GetPalmRecord( PalmRemoteTable ); // build a class with the record and return it
       Application.ProcessMessages();
       MyRecord.SaveToDB();
       PalmRemoteTable.Delete();
       PalmRemoteTable.Next();
    end; // while
    PalmRemoteTable.PurgeTable();
    PalmRemoteTable.Close();

     
    • Josh R Roberts

      Josh R Roberts - 2004-04-16

      In a regular TDataset the delete function delets the current record and moves the cursor to the next record, so you do not need to then call Next.

       
    • Denis Santana

      Denis Santana - 2004-04-17

      Yes!!!, thanks a lot!, I'm beginer using TTables, jjj.
      Forums works!!!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.