| Author |
Topic Search Topic Options
|
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
Topic: Dir() problem Posted: 17 August 2003 at 7:02am |
Hi all,
I've got a little problem. How do I bind a repeater to all files with the extention *.jpg, *.gif, *.png in a directory using the Dir() function?
All other forums couldn't help me, Microsoft wouldn't respond, so you're my last hope!
|
|
Gone..
|
 |
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 August 2003 at 6:31am |
Allright, no posts...
Well, let me explain it a bit more. I want all the jpg files in the Dir("C:\Path\*.jpg") to be displayed in either a datagrid or repeater.
Why is this so difficult? I mean, I'm a n00b, so if I don't understand things, that makes sence. 
|
|
Gone..
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 August 2003 at 3:08pm |
100 views and no answer....
i think its safe to assume that no one has tried to do with wht you are talking about....... no need to "bump" up your post
i'd look elsewhere
|
|
Contribute to the working anarchy we fondly call the Internet
|
 |
masta-chief88
Senior Member
Joined: 11 June 2002
Location: Canada
Status: Offline
Points: 211
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 August 2003 at 1:47am |
|
Before going to forums, you should be looking up the System.IO class. There are also tons of articles about displaying images in datagrids.
|
 |
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 August 2003 at 7:56am |
I know, but I don't want to add or remove data from a database, so the Dir() function is the most simple thing (I thougt..)
|
|
Gone..
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 August 2003 at 9:02am |
i dont know what would be more involved than:
- Getting a list of the files with Dim aLocalFiles As FileInfo() = (New DirectoryInfo(whatever directory)).GetFiles("*.jpg")
- Looping through that and put into an array
- Bind array to the control
seems like that would work
|
|
Contribute to the working anarchy we fondly call the Internet
|
 |
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 August 2003 at 5:25am |
This looks like something  , thanks!
|
|
Gone..
|
 |
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 August 2003 at 7:42am |
|
Type 'FileInfo()' is not defined
|
|
Gone..
|
 |