As vb.net developer am new to B4J...call me a novice
I want to create a table with colums and plunged into thinking i should use a listview similar to vb.net. However it seems that this is a single column object
Ah I see...so successfully added rows to my 5 column table, one by one....I wanted to add up one particular column. But Dim r() As String = tblCB.Items.Get(j) causes a crash.
B4X:
For j = 0 To tblCB.Items.Size-1
Dim r() As String = tblCB.Items.Get(j)
BankOut = BankOut + r(2)
BankIn = BankIn + r(3)
Next
What is the stack trace for the crash? There could be any of a number of possible problems. You might be trying to access an empty array element. You might be trying to cast a String to a numerical type and the cast is failing. But this is all just wild speculation without seeing the stack trace.