Re: [libertybasic] MID$ query
- In LB MID$ is a FUNCTION. In QB MID$ can be either a FUNCTION or a
Join ISP.COM today - $8.95 internet , less than 1/2 the cost of AOL
Try us out, http://www.isp.com/
- Thanks everyone, for your help in this. I have now coded my way
round the difficulty. All in all, I am very pleased with LB. I
should have switched a few years back, I fear.
--- In firstname.lastname@example.org, David Speck
> You are correct -- in LB, MID$ is a "read only" function. You have
> do concatenation yourself to insert characters into a string.ran
> Malcolm Wheatley wrote:
> > Can anyone see anything wrong with these two lines of code, which
> > fine under QB, but which now incur the message "syntax error"?way"
> > First line=
> > MID$(Edit$, TxtPos) = MID$(Edit$, TxtPos + 1) + " "
> > Second line=
> > MID$(Edit$, TxtPos) = " "
> > All I can think of is that under Liberty Basic, MID$ is a "one
> > function -- geting text from a string, but not putting it into astring.
> > Is this correct???
> > Malcolm Wheatley