Menu

#1472 Mid behavior has changed when n is negative

v4.0.x
open-fixed
Server (672)
5
2012-05-01
2012-04-26
No

The formula builder function Mid(str, m, n) used to return the whole string starting at character m if n was negative. In version 4.0 it returns an empty string. The original behavior was undocumented but we should keep it backwards compatible.

Discussion

  • Emanuel Norrbin

    Emanuel Norrbin - 2012-05-01
    • status: open --> open-fixed
     
  • Emanuel Norrbin

    Emanuel Norrbin - 2012-05-01

    This has been fixed in the 4.0.x branch (r52089) and will go into build 4.0.5.18 of the server. The fix was merged from the trunk so it's fixed there too.