I am looking for something similar to the table.InsertRowAt method from B4A.
I was trying to use the table.setvalue method but the problem is, that the existing
values are overwritten in that case.
There is no InsertRowAt in B4A Table class. It probably from the improved Flexible Table class. It shouldn't be difficult to port the code from B4A to B4i. Try to move the sub as is. If it doesn't work then post its code.
Great. Thank you for the information. I just need one part verified: What is the correct "translation" for:
SV_ScrollChanged(SV.HorizontalScrollPosition,SV.VerticalScrollPosition) (in B4A)
The Flexible Table class in B4A uses the ScrollView2D library.
In Android ScrollView scrolls only vertically.
Informatix had written the ScrollView2D library allowing to scroll in both directions.
The answer to your question is: SV_ScrollChanged(PosX As Int, PosY As Int)
Sorry, I was not precise enough:
(Code snippet from B4A tableclass)
B4X:
Public Sub insertRowAt (Row As Int, Values() As String) As Boolean
If (Row < 0) Then Row = 0
If (Row > Data.Size) Then
AddRow(Values)
Return True
End If
SV_ScrollChanged(SV.HorizontalScrollPosition,SV.VerticalScrollPosition) ' this strange call will set min/max visible area
In B4I the system says: .HorizontalScrollPosition and .VerticalScrollPosition are not members of the sv. So with which member of the b4i scrollview do I have to use ?