Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21237

How to make an array of values that corresponds to an array of images?

$
0
0
I have an array of images in a PictureClip control. It is arranged like this:

Code:

+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |10 |11 |12 |13 |14 |15 |
 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
 |16 |17 |18 |19 |20 |21 |22 |23 |24 |25 |26 |27 |28 |29 |30 |31 |
 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
 |32 |33 |34 |35 |36 |37 |38 |39 |40 |41 |42 |43 |44 |45 |46 |47 |
 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
 |48 |49 |50 |51 |52 |53 |54 |55 |56 |57 |58 |59 |60 |61 |62 |63 |
 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
  '                                                          '
  '                                                          '
  '                                                          '
 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
 |192|193|194|195|196|197|198|199|200|201|202|203|204|205|206|207|
 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

In the code I reference each cell using PictureClip1.CellNumber = nnn

Now I need to place the images somewhere on the Form so I need another array that will contain the X and Y of each image from the Clip.

So, using the same nnn index number that I used to get the image I want to use it to get the X,Y value out of another array. How do I make this other array that will contain only the X,Y values of each cell in the Clip array?

Viewing all articles
Browse latest Browse all 21237

Trending Articles