Help loading an number of images into an array.

BlitzMax Forums/BlitzMax Beginners Area/Help loading an number of images into an array.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm trying to load a series of button images into an array:


Why is this giving me a
Compile Error: Expecting expression but encountered ':'
Build Error: failed to compile C:/Program Files/BlitzMax/SImVillage/BArbarian Kingdoms.bmx
when I try to load an image into an array?

This is the line that craps out:
Global MktButu[0]:TImage = LoadImage(LoadBank("AppleMkt0.png"))
I defined the array earlier
as
Global MktButU[6]

If I'm totally off, can anyone suggest a good way to load a series of images into an array?
TIA

Bringing joy to the world one pixel at a time...