Before you use arrays, you should define them as follows. DIM MAP0%[0]