im currently strongting the output of my loop in a string but have been told it would be better to store it in an array
Public Shared Function Getthestats(ByVal thedataview As DataView, ByVal hometeam As String, ByVal awayteam As String) As String
'' dataview-> dtRecords2
'need to loop through the results in datview and get all results for it
Dim hometeamscoresingle As String = ""
For Each dv2 As DataRowView In thedataview
If dv2.Row.Item("HomeTeam") = hometeam Then
hometeamscoresingle += dv2.Row.Item("FTHG") & "|"
ElseIf dv2.Row.Item("AwayTeam") = hometeam Then
hometeamscoresingle += dv2.Row.Item("FTAG") & "|"
How would i store the above as an array?