Howdy!
Ok, I'm stumped... I have an application all put together that reads some information out a text file and acts upon what it reads. For the most part, it all goes well. A little more details tho. The text file contains incident information on the status of different area of a car. Each area of the car is broken down in sections. So you'd have "left front" "left side" "left rear", same thing on the right side, etc...
Each area can have 4 states: slightly, moderately or severely damaged, or removed.
Through the course of reading the file, the status of the car section can go from slightly to moderately or severely damaged. What I want to remember at the end, is the "worse" state of that body part.
Where this gets complicated, is that the text file has the report for many different cars (numbered), and the status of the body part is not grouped in any way. So you could have the status of the left front of car 1, followed by the status of right rear of car 7, then the rear of car 1, etc...
My main programming backgroud is Turbo Pascal, and unfortunately, that's how my brain thinks And in TP, I'd just create an array of records, and modify the array as I go.
I can't figure out how to do that in FPD.
Any help will be highly appreciated!
thanks!
Cheers,
Realm174
Ok, I'm stumped... I have an application all put together that reads some information out a text file and acts upon what it reads. For the most part, it all goes well. A little more details tho. The text file contains incident information on the status of different area of a car. Each area of the car is broken down in sections. So you'd have "left front" "left side" "left rear", same thing on the right side, etc...
Each area can have 4 states: slightly, moderately or severely damaged, or removed.
Through the course of reading the file, the status of the car section can go from slightly to moderately or severely damaged. What I want to remember at the end, is the "worse" state of that body part.
Where this gets complicated, is that the text file has the report for many different cars (numbered), and the status of the body part is not grouped in any way. So you could have the status of the left front of car 1, followed by the status of right rear of car 7, then the rear of car 1, etc...
My main programming backgroud is Turbo Pascal, and unfortunately, that's how my brain thinks And in TP, I'd just create an array of records, and modify the array as I go.
I can't figure out how to do that in FPD.
Any help will be highly appreciated!
thanks!
Cheers,
Realm174