Arrays of classes

Hi, I was wondering if you can do the following code:

Var Data_array() As Table_Proj

“Table_Proj” is a type class with properties.
Data_array() is an little array.

If it is possible to do this, how would I manage to do such things?
Examples would be appreciated.

Thanks

Yes. Just like you typed.

Thanks Christopher Lester.

Do you have any sample?

I’m not sure if there are any official Xojo samples, but it works like you expect.

var myArray() as Person for each mClass as Person in People myArray.AddRow mClass next MessageBox myArray(0).NameFirst

Thank you!