### Content to List of Maps

Example splitting the TextArea content in a List of maps.
'Split the content of a string line-by-line in a list of maps. Each line is defined as key1,key2.
'Example: TextAreaToList2(ta, "heading","image")
`Public Sub StringToList2(content As String, key1 As String, key2 As String) As List
Dim Result As List
Result.Initialize
Dim s() As String = Regex.Split(CRLF, content)
For i = 0 To s.Length - 1
Dim v() As String = Regex.Split(",", s(0))
If v.Length = 2 Then
Dim m As Map = CreateMap(key1:v(0), key2:v(1))
End If
Result.Add(m)
Next
Return Result
End Sub`

Changed: , Category: TextArea, File: T6C261M1921.htm, ID: 1921