Hi
Added in an edit box that simulates the same as would do on the Listbox.
If you change the data in the grids at the bottom, it will list the changes in the memo field.
I have added in a SAVE DATA button that only appears when you have altered something.
It will then create a new file with the changes in it called apt_NEW.dat.
I have checked, and when I read in the new file, the changes are indeed there.
You should be able to create a 'form' based on the stringgrid pretty easy, you just need to extract the data from the grid line column 2, column 1 holds the line in the file. So its hould be easy enough to rebuild the line. If you examine the onediting done event of the grid, you will see how it stores the changes, it can hold upto 2000 line changes in one go.
Also added in the search for the 1,16,17 fields for icao codes.
Note I can only spend limited time on this, it shoudl hopefully give you some ideas though.
Its not the neatest code, and more checks should be added in for ranges and file i/o errors etc.