I don't want to sound like a dumbass, but is there a way to use arrays in Visual Basic, such as you can in Perl?

I want to be able to have a list of error messages and call them by like Error(10) or whatever. Is there something similiar to this? If so, can someone tell me how to declare it and use it?

Thanks in advance.