It may not be possible to do what I would like to do, but I thought I would ask anyway.
I know that I can assign values to a string, int, etc. array with code something like:
Dim MyArray() as String
MyArray = Array as String("String1", "String2", "String3")
but is there any way to assign values to an array of a user defined type:
Type MyType(a as Int, b as Int, c as String)
Dim MyTypeArray() as MyType
MyTypeArray = Array as MyType( ???? ...
The actual type I am defining contains 7 ints and 2 strings and it would be nice (take less memory and be faster) if the values could be assigned this way instead of having to to it in code for each item in the array.
Is it possible and, if so, how?
I know that I can assign values to a string, int, etc. array with code something like:
Dim MyArray() as String
MyArray = Array as String("String1", "String2", "String3")
but is there any way to assign values to an array of a user defined type:
Type MyType(a as Int, b as Int, c as String)
Dim MyTypeArray() as MyType
MyTypeArray = Array as MyType( ???? ...
The actual type I am defining contains 7 ints and 2 strings and it would be nice (take less memory and be faster) if the values could be assigned this way instead of having to to it in code for each item in the array.
Is it possible and, if so, how?