I've discovered the wonderful would of Tstings and TStringLists and I LIKE IT!!! Since I'm relatively new to OOP and pascal can anyone tell me if it is possible or more to the point, desirable, to take something like a TStringlist and add properties to it??
Here is the scenario, I'm using a function to return a list of files in a directory in a TStringList which I then loop through to check each file, pdf file, for valid isbn numbers using an external program, pdftotext. To try and cut down on the amount of pages I have to scan per pdf to look for an ISBN number I'd like to loop through and test each pdf one page at a time. If the page contains an ISBN then I grab the info from the web and go on to the next document. What I'd like to do is somehow flag or remove the filename from the TStringList so the next time through the loop I skip the pdf, this way I only keep looking for the ISBN on pdfs I didn't find one in already. Since I have thousands of documents this would help a lot on speeding up things.
I tried to remove the file name from the TStringList but the loop is based on the TStringList.Count so I get a crash since the new count is one shorter. I thought I might be able to flag the string in the TStringList somehow so I can skip it on the next loop but am unsure how to do it without using another array which seems redundant. So I was wondering if there was any way I can take a TStringList and make it the basis for an object that also allows me to use a boolean flag per list object.
Ideas??
Don't be afraid to beat on me for missing something simple as I usually learn the most that way
