hi, couldnt really think of a subject for this post...
I best show my code it kinda explains itself better than i can explain.
So, what i want to do is loop through the contents of this array.. i used structure while i "could" have used a multidimensional array, but i just wanted to try this out.
It isnt the same as working with the avarage array, it seems i cant simply use a for each loop. is there some other way i can loop through this to get "name, email, phone" ?
thx
I best show my code it kinda explains itself better than i can explain.
VB.NET:
Structure customers
Dim name As String
Dim email As String
Dim phone As Double
End Structure
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim people(4) As customers
people(0).name = "sean"
people(0).email = "sean@xx.com"
people(0).phone = 5467892299
people(1).name = "julia"
people(1).email = "julia@xx.com"
people(1).phone = 5467892299
people(2).name = "anna"
people(2).email = "anna@xx.com"
people(2).phone = 5467892299
people(3).name = "melanie"
people(3).email = "melanie@xx.com"
people(3).phone = 5467892299
End Sub
So, what i want to do is loop through the contents of this array.. i used structure while i "could" have used a multidimensional array, but i just wanted to try this out.
It isnt the same as working with the avarage array, it seems i cant simply use a for each loop. is there some other way i can loop through this to get "name, email, phone" ?
thx