im having some problems with arrays. the error says something about a null reference. this is my code:

Code:
dim inventory as array
inventory(1)="Axe"
inventory(2)="Wood"
etc
does anyone have any idea what the problem could be?