Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Dir() problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dir() problem

 Post Reply Post Reply Page  12>
Author
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
masta-chief88 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2002
Location: Canada
Status: Offline
Points: 211
Post Options Post Options   Thanks (0) Thanks(0)   Quote masta-chief88 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2003 at 5:25am
This looks like something , thanks!
Gone..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2003 at 7:42am
Type 'FileInfo()' is not defined
Gone..
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.