Page 1 of 1

Scintilla searchnext

Posted: Thu Mar 27, 2025 7:41 am
by rndrei
It finds only the first one it comes across. How to make it search for everything.

Code: Select all

Procedure find_text(find_string.s)
   Define position_sc.l
   SearchText = find_string
   *Text = UTF8(SearchText)
   Search\lpstrText =*mem_doc
   position_sc= ScintillaSendMessage(#sc,#sci_searchnext,0,*text )
   ScintillaSendMessage(#sc,#sci_gotopos,position_sc)
   FreeMemory(*Text) 
EndProcedure

Re: Scintilla searchnext

Posted: Thu Mar 27, 2025 7:58 am
by infratec
If you want more resuluts then one, you need a loop :wink:

And ... SCI_SEARCHANCHOR

Look here:
https://www.purebasic.fr/english/viewto ... 59#p391559

Re: Scintilla searchnext

Posted: Thu Mar 27, 2025 8:29 am
by rndrei
Thanks, I figured it out!