Finally. end statement with the call to EnableControls in the finally clause. Otherwise, an exception will leave the application’s controls inactive. The same principles apply to the EOF property, which returns a value of True after: • An application opens an empty dataset • A call to a Table’s Last method • A call to a Table’s Next fails The following code sample provides a simple means of iterating over all the records in a dataset: Table1.DisableControls; Table1.First; while not Table1.EOF do begin DoSomething; ▇▇▇▇▇▇.▇▇▇▇; end; finally Table1.EnableControls;
Appears in 2 contracts
Sources: Copyright Agreement, Copyright Agreement