https://bugs.freedesktop.org/show_bug.cgi?id=73771
Priority: medium
Bug ID: 73771
Assignee: [email protected]
Summary: Non-standard behaviour for Function Mid
Severity: major
Classification: Unclassified
OS: Windows (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: UNCONFIRMED
Version: 4.1.4.2 release
Component: BASIC
Product: LibreOffice
Hello,
Try these:
1) Print Mid("abc",4,2)
returns "", no problem
2) Print Mid("abc",5,2)
returns "!!br0ken!!"
2) seems to happen whenever second argument exceeds length of string plus 1.
IMHO standard behaviour (some other languages *and* Apache OpenOffice) seems to
be "if range fall outside string, return empty string"
Raising a new incompatibility of code between AOO and LibO!!
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs