claire_bicknell
Well-known member
- Joined
- Dec 10, 2008
- Messages
- 49
- Programming Experience
- Beginner
I know this is probably a really REALLY simple question but i just can't figure it out!
This is my code so far:
And I am asking the question in regards to this fragment of code in particular:
I want the result to be like this:
Trafford Park
Address: ...........
Telephone: ............
Opening Times: ...........
Currently it is just one long string and I need to put the syntax for a new line in the correct places.
Any help much appreciated.
This is my code so far:
HTML:
Private Sub LoadPlaces()
Me.CentreTableAdapter.Fill(MyDataSet, "Centre")
For Each row As DataRow In MyDataSet.Tables("Centre").Rows
places.Add(row.Item("CentreName") & (" ") & ("Address: ") & row.Item("Address") & (" ") & ("Phone: ") & row.Item("TelephoneNumber") & (" ") & ("Opening Times: ") & row.Item("OpeningClosingTimes"), New Rectangle(row.Item("X1"), row.Item("Y1"), row.Item("X2"), row.Item("Y2")))
Next
End Sub
And I am asking the question in regards to this fragment of code in particular:
HTML:
places.Add(row.Item("CentreName") & (" ") & ("Address: ") & row.Item("Address") & (" ") & ("Phone: ") & row.Item("TelephoneNumber") & (" ") & ("Opening Times: ") & row.Item("OpeningClosingTimes"), New Rectangle(row.Item("X1"), row.Item("Y1"), row.Item("X2"),
row.Item("Y2")))
I want the result to be like this:
Trafford Park
Address: ...........
Telephone: ............
Opening Times: ...........
Currently it is just one long string and I need to put the syntax for a new line in the correct places.
Any help much appreciated.