@Josh
Had a response typed in and got logged out and lost the typing. Hate that about this system. So here goes again.
Do you by any chance like a little color on you screens?
I can't tell whch file you are pointed at, but I tested it on my test file, worked fine and then the 9.7mil file. Half way thru it took a big hit on performance and I'm not sure if it loaded all the records.
The last record in a Apt.dat file is just '99'.
I'll add a counter and display the last record to a label1.caption to check.
In the lower maroon box there is a number at the top right 14,666. I think that may be the entries in the box which is the airports. Should be 35,000+.
You display City country which is a problem. Most large cities have several airports. Phoenix KPHX, Dear Valley Busiest GA airport in the world, Gelipse field, Mesa, Chandler, Scottsdale. In order to sort the mess avaiation use ICAO Codes. Guarantee unique code by country. US code starts with a K or a P in Alaska. KPHX Phoenix, KLAS Los Vegas, PANC Anchorage. Canada with a 'C' CYUL Monteral.
Where I'm loading all 9.7mil records in a dynamic array they are stored in an array of records.
Fline is the text record or text line. I added RCDID which is = to Copy2Space(Fline); and ICAO which is the 5th field in of the RCDID '1', airport, '16' seaplane base and '17' heliport. It is the ICAO code "KPHX'. Thinking it will make searching thre array of records easier. but it does create a redundancy of data. The other two important ones '1300' and '1301' are the ones I need to edit. All the rest are just baggage I have to carry.
type
PData = ^TData;
TData = record
FLine : String;
FIndex : Integer;
RCDId : String;
//other data if needed
end;
Unique way of setting the filename path. Took me a bit to figure out. Not a bad idea. Do you really have an R drive?
Thanks