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();
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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();
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.
Yes!!!, thanks a lot!, I'm beginer using TTables, jjj.
Forums works!!!