Author: Mainship | Posted on: 2/4/2009 11:05:37 PM | Views : 387

I have a field called file2 that identifies a unique person.  Each person can have as many photos as they care to pay for.  All the photos are named with the value of file2.  So if file2 is "z-123" and there are 4 photos, they are named "z-123.jpg", "z-123-2.jpg", "z-123-3.jpg" and "z-123-4.jpg".  It would solve my problem if the first one was named "z-123-1.jpg" but that wasn't my decision. 
I'm trying to display all the photos for a person on a page, and I'm running into problems.  I thought of Dim files As FileInfo() = dir.GetFiles(sPerson & "*.jpg"), but if I have a photo called "z-1234.jpg" that gets included and it shouldn't be.
I thought of Dim files As FileInfo() = dir.GetFiles(sPerson & "-*.jpg") but I would need to add the first photo to the array.  I don't know how to do that.
So I thought ...

Go to the complete details ...