Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mid$ (is this a bug?)
#1
Isn't

Code:
Print mid$("abcdefg",2,0)
sleep

supposed to return a null string "". Instead it returns "bcdefg"
Reply
#2
I'm guessing it just returns all of the characters from the starting point to the length of the string like BCX's Mid$ does.
Reply
#3
Just checked QB's result and it returned an empty string, so i changed FB do to the same.. patch is on CVS, the runtime lib must be recompiled, not the compiler (to rebuild the rtlib, mingw or devcpp must be installed in Windows).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)