Quote: "teamone(1) = 5
teamone(1,1) = 1 `tank
teamone(1,2) = 100
teamone(1,3) = 5"
At first glance, I was sure that this wouldn't run in DBC because of the first line. It didn't. However, oddly enough the first line was OK - the missing colon on line 2 caused the problem!
So, I point the following out only as it may cause you problems in the future.
If the teamone() array is dimensioned with say
Dim teamone(3,3) then it is a multi-dimensional array with 16 'slots' (4x4).
In which case, putting:
teamone(1) = 5
..is not good practice as you are not providing the second element value.
Surprisingly, DBC doesn't throw a wobbler with this, but instead
assumes you meant teamone(1
,0).
When your arrays get bigger and more complicated, this is only going to confuse you so I suggest that you don't use the format teamone(1), but use the full version - teamone(1,0).
TDK
[href=http://www.computechtenerife.com[/href]