-
Arrays
How do you assign pictures to arrays, like array(1) is pic1, array(2), is pic2 and array(3) is pic 3
-
declare an array of standard pictures, and then use the Set keywaord to assign its elements:
dim array() as StdPicture
redim array(2)
set array(0) = pic0
set array(1) = pic1
set array(2) = pic2
PS remember that by default the first index of an array is zero. You can override it for a single array by:
dim array(1 to 3) as StdPicture
or globally using the 'Option Base' statement:
Option Base 1
Marco
-
what does redim do?
and for pic1, pic2 would it be like an imgObject?
-
I used pic1 and pic2 because they were in your post...
let's back up a little: what do you want to accomplish here? Where are the pictures? Into files? And why do you want to put them in an array?
redim: open IDE, type redim in the immediate window, double click to select it and press F1: that will display its help page.
Marco
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks