stevel05 Expert Licensed User Longtime User Jan 5, 2020 #1 I have used B4xSimpleCodeHighlighter in a couple of projects which uses the Text field of BCTextRun Type, this appears to have been removed in V1.71. I have replaced it for my use with a sub : B4X: Copy Private Sub GetText(TR As BCTextRun) As String Dim S As JavaObject = "" Return S.RunMethod("join",Array("",TR.TextChars.Buffer)) End Sub which appears to work, I just wanted to make sure I haven't missed something that will cause further problems. It would take hours to go through the whole code of BCTextEngine.
I have used B4xSimpleCodeHighlighter in a couple of projects which uses the Text field of BCTextRun Type, this appears to have been removed in V1.71. I have replaced it for my use with a sub : B4X: Copy Private Sub GetText(TR As BCTextRun) As String Dim S As JavaObject = "" Return S.RunMethod("join",Array("",TR.TextChars.Buffer)) End Sub which appears to work, I just wanted to make sure I haven't missed something that will cause further problems. It would take hours to go through the whole code of BCTextEngine.
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2020 #2 I've returned BCTextRun.Text. I previously wasn't sure that it is still needed. Upvote 0