Thanks for the answer!
With point 2, everything is fine, it works perfectly.
Point 1 I just did according to Your example, I needed to make the selection of the entire line and I implemented it through SINGLE_LINE_PERMANENT, but I still have another problem - I need to implement such a mechanism:
1. I know that the table does not contain the name "Peter".
2. In another procedure, I add the name "Peter" to the table and know that its key = 134.
3. Now I need to update the B4XTable in form and select the row with the name "Peter".
The instructions say that you need to apply SelectedLines, I know that this is line = 5, I write
XSelections.SelectedLines.Put(5,"")
Tbl2.Refresh
, but the line is not selected
I even just try to programmatically select row number 5 in the table after opening the form, and it doesn't work for me... That is, my hands are allocated rows normally, but I do not know what to insert after the operator Tbl2. SetData(List 1) so that after opening the form in the table was allocated row № 5