Qbasicnews.com
July 08, 2020, 07:40:57 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: mid$ (is this a bug?)  (Read 1193 times)
gbos
New Member

Posts: 20


« on: March 08, 2005, 08:51:41 AM »

Isn't

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


supposed to return a null string "". Instead it returns "bcdefg"
Logged
lkd85
Member
*
Posts: 63


« Reply #1 on: March 08, 2005, 12:40:36 PM »

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.
Logged
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #2 on: March 08, 2005, 06:09:14 PM »

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).
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!