Carlo Hogeveen
unread,Sep 21, 2025, 3:29:22 AM (5 days ago) Sep 21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sem...@googlegroups.com
Sammy,
I interpret your argument as that we cannot do a GetFoundText() after StrFind(), because StrFind() works like lFind() instead of Find().
But as the new demo macro below demonstrates, we can also successfully do a GetFoundText() after lFind().
Carlo
proc Main()
NewFile()
InsertText('abcdef')
BegFile()
if lFind('a{.}c{.}e', 'ix')
Warn('lFind() test found "', GetFoundText(1), '" and "', GetFoundText(2), '".')
endif
AbandonFile()
if StrFind('a{.}c{.}e', 'abcde', 'ix')
Warn('StrFind() test found "', GetFoundText(1), '" and "', GetFoundText(2), '".')
endif
PurgeMacro(CurrMacroFilename())
end Main