Well most likely you are going to need to put the array at the class level scope, that is outside the functions but inside the form class (under where it reads
public class Form at the top. I suggest you put it there because several functions are going to need access to this list of orders. Your add function is one of them, then you might have an edit and delete and any other function that needs to sum up the order amount.
This array is going to be of your custom order type but might be of your product type, depending on your design. One thing I am not seeing that you might want to review is how you are constructing your order. Your order class should take in product classes to its add function. For example...
CODE
' Create an order
aOrder = new Order("Order for Tom Jones")
' Create some products
prod1 = new Product("Sweater",2,39.99)
prod2 = new Product("Pants",1,54.99)
prod3 = new Product("Hat",1,23.99)
' Add the products to the order
aOrder.addProduct(prod1)
aOrder.addProduct(prod2)
aOrder.addProduct(prod3)
As you can see, Tom Jones bought 2 sweaters, a pair of pants, and a hat and had it placed on his order. Now in the Orders class you are going to have an array there of products defined similar to this...
CODE
Dim OrderProducts(10) as Product
This declares an array of 10 custom products. All that is left is to create your addProduct() function which will take in a product class instance variable, check the array for the next available slot and add in the product. Your order class is going to be a "wrapper" for your products array. The order class will work on the product array doing various things like adding up the number of orders (counting the array), get the order total (loop through the array adding up their values) and add/edit/delete orders from the array.
Hopefully I have shown you the light in the darkness.
Enjoy!
"At DIC we be product / ordering class junkie ninjas!"