[Libreoffice-bugs] [Bug 129436] Unclear documentation of InStr "Compare" parameter

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Dec 16 21:31:38 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=129436

--- Comment #4 from Olivier Hallot <olivier.hallot at libreoffice.org> ---
(In reply to Jim Avera from comment #2)
> While fixing this, there are a couple of other improvements which could be
> made:
> 
> * Mention whether the first position of a string is 1 or 0.

Wrong. For the same example,

 iPos = Instr(4,"Office","f",0)

the result is 0 because the search starts at position 4 and 'f' occurs at 2 and
3. IOW, it will search 'f' in string 'ice'.

> 
> * Show the result from the code example (currently it just lists the code
> without saying what the expected result is).

Agree.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191216/ab6d01b3/attachment.htm>


More information about the Libreoffice-bugs mailing list