English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi,

I want to initialize a four dimentional array that is 3x3x3x3.
Then I want to begin assigning decimal values to each cell.

Here's my code:

Dim matrix(3, 3, 3, 3) As Double

matrix(1, 1, 1, 1)=0.878595
matrix(1, 1, 1, 2)=0.457677
matrix(1, 1, 1, 3)=0.345555
matrix(1, 1, 2, 1)=0.765455

etc.

when I type this in, the program blue-underlines "matrix". When I put my mouse over it, it says "declaration expected".

Well that's what I thought I was doing!

What am I doing wrong?

2007-03-08 15:51:32 · 1 answers · asked by cpine505 3 in Computers & Internet Programming & Design

1 answers

try something other than matrix - could be reserved. try mymat or something.

additionally, try a 3 dimensional matrix and see if that works to ensure it's not that. I see no reason why an n-dimensional array wouldn't work.

2007-03-08 16:57:24 · answer #1 · answered by shawntolidano 3 · 0 0

fedest.com, questions and answers