StrFind() example incorrect

23 views
Skip to first unread message

Fred H Olson

unread,
Dec 26, 2020, 6:21:59 PM12/26/20
to Semware
I just noticed that the TSE Help example for StrFind() has the first
two parameters reversed from what they should be. Haystack should be
the second parameter.

> // last 6 digits could be any number
> string haystack[30] = "B0000123456.msg"
>
> if StrFind(haystack, "B0000.*\.msg", "x")
> ...

Fred

--
Fred H. Olson Minneapolis,MN 55411 USA (near north Mpls)
Email: fholson at cohousing.org 612-588-9532
My Link Pg: http://fholson.cohousing.org

Carlo

unread,
Dec 26, 2020, 6:41:43 PM12/26/20
to sem...@googlegroups.com

> I just noticed that the TSE Help example for StrFind() has the first two parameters reversed from what they should be. Haystack should be the second parameter.

But it is documented as being the second parameter.



Carlo Hogeveen

unread,
Dec 26, 2020, 7:10:16 PM12/26/20
to sem...@googlegroups.com

> > I just noticed that the TSE Help example for StrFind() has the first two parameters reversed from what they should be. Haystack should be the second parameter.

> But it is documented as being the second parameter.

Oops, my mistake, the definition is right, but, as you found, the example is wrong.



knud van eeden

unread,
Feb 8, 2026, 1:52:45 PM (12 days ago) Feb 8
to Semware
FYI:

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

S.E. Mitchell

unread,
Feb 12, 2026, 5:43:47 AM (8 days ago) Feb 12
to sem...@googlegroups.com
I have made a note to fix this when I next work on the help.
> To view this discussion visit https://groups.google.com/d/msgid/semware/994640003.298670.1770576762843%40mail.yahoo.com.
Reply all
Reply to author
Forward
0 new messages