https://bugs.documentfoundation.org/show_bug.cgi?id=154166
Rafael Lima <rafael.palma.l...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Rafael Lima <rafael.palma.l...@gmail.com> --- Forget about my Comment #2 above. I tested it wrong. Now I ran the following code: Sub TestMid Dim MyString MyString = "The dog jumps" ' Initialize string. Mid(MyString, 5, 3) = "fox" MsgBox MyString Mid(MyString, 5) = "cow" MsgBox MyString Mid(MyString, 5) = "cow jumped over" ' MyString = MsgBox MyString Mid(MyString, 5, 3) = "duck" ' MyString = MsgBox MyString End Sub In MS VBA we get: "The fox jumps" "The cow jumps" "The cow jumpe" "The duc jumpe" In LO Basic we get: "The fox jumps" "The cow" "The cow" "The duc" It seems that when you omit the "Length" argument, LO Basic cuts off the remainder of the string. Also, when the resulting string is larger than the original string, MS VBA cuts off the difference and keeps the string length, whereas LO Basic increases the string length. So yeah, I believe they both should work the same way. -- You are receiving this mail because: You are the assignee for the bug.