Tobias, thank you! I have struggled with this for a couple of days. This'll teach me for having started out on a Commodore PET.
I couldn't find INSTR in this manual because it's in the wrong place. After IO_PRIORITY. It never crossed my mind to look past the place it would logically be. This is how my memory works: it's not in there. Then you show me it, and it's there like it was never gone, (usually, not always). I never felt RIGHT$ was clumsy, because it was easy and as Phoebus will tell you, I do like to be spoon-fed ;) I do remember missing it so much when I got my QL. Thanks again. Dave On Sun, Feb 6, 2011 at 5:36 AM, Tobias Fröschle < tobias.froesc...@t-online.de> wrote: > 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! >> >> One of the other things that might come out of this process for me is a >> heavily revised and annotated new manual, with better examples yet more >> concise instructions. Which I'd post for everyone's benefit. >> >> Dave, > 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. > INSTR is actually there. > > Cheers, > > Tobias > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm