DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

Thread: Arrays

  1. #1
    Join Date
    Jul 2004
    Posts
    34

    Arrays

    How do you assign pictures to arrays, like array(1) is pic1, array(2), is pic2 and array(3) is pic 3

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    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

  3. #3
    Join Date
    Jul 2004
    Posts
    34
    what does redim do?
    and for pic1, pic2 would it be like an imgObject?

  4. #4
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links