Hello,
I'm working to add copy function on a tableview, I found how to do for a line but now I'm searching for a cell. The idea is to offert the choice between copy the line or just the specified cell.
I'm working to add copy function on a tableview, I found how to do for a line but now I'm searching for a cell. The idea is to offert the choice between copy the line or just the specified cell.
B4X:
Sub CopyCell_Action () 'Context Menu
Dim mi As MenuItem = Sender
Dim CopyRow(TVALLNbColumn - 1) As Object = TVALL.SelectedRowValues
Dim TempString As String =""
If mi.Text = "_Copy Cell" Then
For i=0 To TVALLNbColumn - 1
If i < TVALLNbColumn - 1 Then
TempString=TempString&CopyRow(i)&";"
Else
TempString=TempString&CopyRow(i)
End If
Next
fx.Clipboard.SetString(TempString)
End If
End Sub