Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3874

TextArea.LineNumber Can't Handle Large Position Parameter

$
0
0

Xojo 2021r2.1

I have a TextArea with lots of lines, like 10,000 or more, and am trying to implement a simple search function:

Var Position As Integer =TextArea1.Text.IndexOf(SearchStart, searchText)
If position > -1 Then
  Var LineNumber As Integer = TextArea1.LineNumber(Position)

With a MacOS target, it works fine.
With Windows as the target, it finds Position quickly enough, but completely chokes on LineNumber(Position) - just freezes, whether free-running or single-stepping.

Is there a workaround, or a better control?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3874

Trending Articles