I have a list (string?) of items that were created using
Sub SplitText(Text As String) As String()
Dim sText() As String
sText = Regex.Split(CRLF, Text)
Return sText
End Sub
List is something like
xxxx,123
bbbb,456
Now I want to assign that array(is it an array or is it a string what regexx.split returns? to a B4ATable with 2 columns
This is not working:
Sub SplitText(Text As String) As String()
Dim sText() As String
sText = Regex.Split(CRLF, Text)
Return sText
End Sub
List is something like
xxxx,123
bbbb,456
Now I want to assign that array(is it an array or is it a string what regexx.split returns? to a B4ATable with 2 columns
This is not working:
B4X:
Private Sub Done_Click
Dim myitems() As String
Dim l As List
myitems = SplitText(ShipList.text)
For Each Item As String In myitems
l.Add(Item)
Next
Tbl1.SetData(l)
End Sub
Sub SplitText(Text As String) As String()
Dim sText() As String
sText = Regex.Split(CRLF, Text)
Return sText
End Sub
[QUOTE]
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 677 (B4XTable)
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Object[]
at b4a.example.b4xtable$ResumableSub_SetData.resume(b4xtable.java:455)
[/QUOTE]