I Fixed it. :)
I Used the variable TFile.TempID.
Basically I added 1 to that variable every time a new file was detected. So I checked if Line$ was less than TempID-1 and if it wasn't then quit the loading process.
That took 1 hour to figure out. :/ In my defence though it is 2.30 am in the Morning here in London. :)
I Used the variable TFile.TempID.
Basically I added 1 to that variable every time a new file was detected. So I checked if Line$ was less than TempID-1 and if it wasn't then quit the loading process.
Case (char = 13) If Line$ <= TFile.TempID - 1 MapIdselected = 1 Exit Else MapIdSelected = 0 TFile.DoLoadMap = 0 For Local f:TFile = EachIn TFile.FList f.Fid = 0 Next TFile.FList = Null TFile.TempID = 0 TFile.TempY = 100 TFile.DoneLoadingMaps = 0 Exit EndIf
That took 1 hour to figure out. :/ In my defence though it is 2.30 am in the Morning here in London. :)