https://bugs.freedesktop.org/show_bug.cgi?id=87834

--- Comment #11 from Michael Büssow <[email protected]> ---
I just tested furthermore a little bit.
mid("test",7,1) results "" (as expected)
but
mid("test",7) results "!!br0ken!!" instead of ""
and 
mid("test",-7,1) results "!!br0ken!!" instead of an error message

It seems that the one problem (start>length) only occurs if mid() is used with
only 2 parameters

mid() can be used with 2 or 3 parameters as function
or with up to 4 parameters as command (and I believe it is all inside the
RTLFUNC(Mid))
mid(text,start [,count]) as function or command results a substring
mid(text,start [,count], newtext) as command results a string where in the
string text the substring of count letters, beginning from start is substitute
by newstring
e. g. 
t="the last year"
mid t,5,4,"new"
msgbox (t)
results a messagebox with "the new year"

-- 
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

Reply via email to