i've created a 2-dim image array but cannot assign images its members. i have done as follows

dim img(4)() as image





for d=0 to 3
 img(0)(d)=My.Resources.RedPlayer
img(1)(d)=My.Resources.BluePlayer
img(2)(d)=My.Resources.GreenPlayer
img(3)(d)=My.Resources.YellowPlayer
next d

Two dim-array syntax :

Dim varName(upperBound,upperBound) as DataType

dim img(3,3) as image

for d=0 to 3
   img(0,d)=My.Resources.RedPlayer
   img(1,d)=My.Resources.BluePlayer
   img(2,d)=My.Resources.GreenPlayer
   img(3,d)=My.Resources.YellowPlayer
next d
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.