iOS Question Table.insertRowAt - something similar

h725

Active Member
Licensed User
Longtime User
Hello Community !

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.


Kind regards
h725
 

h725

Active Member
Licensed User
Longtime User
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)
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
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)
 
Upvote 0

h725

Active Member
Licensed User
Longtime User
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 ?
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…