Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Arrays

Status
Not open for further replies.

HighlandJinx

Programmer
May 20, 2002
34
GB
I have a folder that contains images named pic0001 to pic 0010. I want to put these in an array so they can be accessed one at a time using a scroll bar later on.

What is the easiest way to add the pictures to an array, i tried using a For...Next loop but i'm having problems picking up the filename from the path.

Thanks for any help folks.
:)
HJ
 
For a = 1 to 10
myFile = "pic00" & cstr(a)
'do your bit with myFile
Next a

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Sorry, missed out the Format bit:
myFile = "pic00" & Format(cstr(a), "00")


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top