Hi Lazarus List and Alvaro,
Below is the reply to this message from my friend Alvaro in Spain, who is a part-time Delphi programmer.
On Tue, Aug 31, 2010 at 6:03 AM, Peter E Williams
Hi Alvaro, forwarded below is another yet to be answered post to the
Lazarus
programmers list. I would appreciate your thoughts on it. The
techniques
Show quoted text 10 lines
dBase code
(in Delphi) to lazarus. I was advised that I should NOT use Dataset.RecNo but instead I should use bookmarks. Can someone
please
Show quoted text 17 lines
[...]
// here I have the Hexx_Data_DBF file open and begin to loopthrough it in a while loop.
Show quoted text 6 lines
// here I save the RecNo in a variablewith Hexx_Data_DBF.FieldDefs do Hexx_Data_DBF_RecNo := Dataset.RecNo;
// the close the databaseclose_db; if trace_moves then begin
// open a different TDbf file (Trace_File)open_trace_file; With Trace_File_DBF do try
// go to the RecNo of the saved Trace_File's
variablewith Trace_File_DBF.FieldDefs do Dataset.RecNo := (TraceFile_DBF_RecNo);
// save the Hexx_Data_DBF's RecNo into the
Trace_FileFieldByName('record_no' ).AsInteger := Hexx_Data_DBF_RecNo;
// hmmm.... not sure whether I should be using
finally or except here.Show quoted text 7 lines
// reopen the Hexx_Data_DBF fileopen_db;
// and the go back to the RecNo saved in the variablewith Hexx_Data_DBF.FieldDefs do Dataset.RecNo := (Hexx_Data_DBF_RecNo); end;
// then use the Next procedure to continue looping through
the DBF datafile