On Wed, Oct 27, 2010 at 12:24 PM, ChrisM <[email protected]> wrote:
>
>
> On Oct 26, 6:12 am, Stephen Russell <[email protected]> wrote:
>
>> How about schema for the data we are searching please.  Also need to
>> know how to FIND the row you are first looking for so we can add a 1
>> to it?
>>
>> Last point is how much data is in this control, 20 rows or 20,000?  Or
>> is the data still in the db and we are attempting to get the PK for
>> that row first?
>
> Thanks for the reply. There is no database. It's simply a windows
> folder with about 1,300 PDF files in it. They are named sequentially,
> ie "R001200, R001201, R001202" and so on. I am creating an array using
> the GetFiles method which seems to sort them by default from lowest to
> highest or A to Z.
-----------------------------


// Process the list of files found in the directory.
string [] fileEntries = Directory.GetFiles(targetDirectory);
     foreach(string fileName in fileEntries)
         ProcessFile(fileName);


You make the ProcessFile() method to do what you want.

You could wrap an if() around it to only process a specific subset but
not sure how you will figure it out when you are dealing with the pdf
files.  If you juse wanted to go to the next one that is easy, foreach
does that already.  Jumping to a specific one, what will you then do?
ProcessFile()


-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Reply via email to