P peggjones Active Member Licensed User Longtime User Aug 3, 2019 #1 Does anyone understand this? If I select some text by pressing on the screen as one would to cut and paste etc. It always returns 0. Am I missing something? Thanks
Does anyone understand this? If I select some text by pressing on the screen as one would to cut and paste etc. It always returns 0. Am I missing something? Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2019 #2 Seems to work fine. Tested with this code: Code: Copy Sub Globals Private EditText1 As EditText End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("1") End Sub Sub Activity_Resume Do While True Log(EditText1.SelectionLength) Sleep(1000) Loop End Sub Upvote 0
Seems to work fine. Tested with this code: Code: Copy Sub Globals Private EditText1 As EditText End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("1") End Sub Sub Activity_Resume Do While True Log(EditText1.SelectionLength) Sleep(1000) Loop End Sub