[Gambas-bugtracker] Bug #1690: Mid$ (assignment) broken

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Nov 30 20:29:22 CET 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1690&from=L21haW4-

Comment #3 by Benoît MINISINI:

I think that it's the mail example that is wrong. The Mid$(S, Pos) = XXX syntax without the third argument is not clearly documented in the wiki.

You have to specify the third argument to get the expected behaviour:

Mid$(sBuffer, 30, 3) = "mid"

If you just use Mid$(sBuffer, 30), it replaces from the 30th character to the end of the string.

Which is logical, as Mid$(sBuffer, 30) returns everything from the 30th character until the end of the string.

Benoît MINISINI changed the state of the bug to: Rejected.




More information about the Bugtracker mailing list