[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arrays: strange feature ?!



Nicolas Decoster wrote:

> In fact I stopped on this because I want to create an array of images
> using something like that: [image1, image2, image3]. What is the way to
> do this without creating a new temporary variable array? Or is there a
> way to create easily a list of anything.

You can create the array like this:

image = [ [image1], [image2], [image3] ]

Or:

image = REFORM( [ image1, image2, image3 ], N_ELEMENTS( image1 ), 3 )

        Alex
-- 
  Alex Schuster     Wonko@weird.cologne.de          PGP Key available
                    alex@pet.mpin-koeln.mpg.de