Scintilla searchnext
Posted: Thu Mar 27, 2025 7:41 am
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