Tobias Fröschle wrote, on 6/Feb/11 11:36 | Feb6:
Am 06.02.2011 12:19, schrieb Plastic:
Also...

One of the major problems I'm having is the "manual" I downloaded. The
"QPCKeywords V1_02" document has many keywords missing/ignored that I
remember, like RIGHT$, LEFT$ and INSTR... and I don't remember how to use
them. I would dig in the garage to find the old printed manual, but it's
FREEZING out there!
<snip>
the "manual" is right here and your memory is wrong ;-).
One of the major differences of S*Basic against MS Basic used to be the
omission of the keywords you mentioned. All of this somewhat clumsy
approach of RIGHT$, LEFT$ is done with the much more elegant string
slicing in S*BASIC.
Replace
"LEFT$(x$, n)" with "x$(TO n)"
"RIGHT$(x$,n)" with "x$(LEN(x$)-n TO)"
which is much more elegant, I think.
Absolutely. That was the one command that struck me as so totally logical and easy to understand of all the sB differences from IBM Basic in the 70s.
INSTR is actually there.

Tony

--
QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
       t...@firshman.co.uk     http://firshman.co.uk
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman
    TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to