[Gambas-user] mid$

Marius Mauch genone at ...89...
Tue Dec 7 03:11:17 CET 2004


On Mon, 6 Dec 2004 19:03:53 -0500
Rob <sourceforge-raindog2 at ...94...> wrote:

> On Monday 06 December 2004 17:26, scatman wrote:
> > myString = "help me to understand mid String in gambas"
> > print mid$(myString, 4)
> > gambas shows me.
> >  me to understand mid String in gambas
> > but in the manuel
> > print mid$("Gambas",4)
> > says bas
> 
> In each case, the result of the function is the input string 
> starting at the 5th character (in Gambas, you count from 0.)  So 
> it's pretty consistent.  What did you expect the function to 
> return?

Maybe I'm just misunderstanding something, but in one case we drop
"help" (4 chars) and in the other case we drop "Gam" (3 chars), I'd
guess the manual is wrong then if we start at index 0.

-- 
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20041207/148755fc/attachment.sig>


More information about the User mailing list