Hail,
Let's say you have:
Public Type Test
Test1 as string
Test2 as string
Test3 as string
End Type
Is there a way to loop through the elements? For example, let's say I would want to assign three values (1, 2 and 3) to each of those, is there a way to loop them instead of doing
Dim TestType as Test
TestType.Test1 = 1
TestType.Test2 = 2
TestType.Test3 = 3
Could I do something like
For X =1 to 3
TestType.? = X
next
Let's say you have:
Public Type Test
Test1 as string
Test2 as string
Test3 as string
End Type
Is there a way to loop through the elements? For example, let's say I would want to assign three values (1, 2 and 3) to each of those, is there a way to loop them instead of doing
Dim TestType as Test
TestType.Test1 = 1
TestType.Test2 = 2
TestType.Test3 = 3
Could I do something like
For X =1 to 3
TestType.? = X
next