What about doing something like this. In languages like c# the equivalent
of the "select on: command is hardly ever used and if .. else if ... else
is much more common:

100 INPUT a$
110 IF a$="a" THEN
115   PRINT "hello a"
120   ELSE
130     IF a$="b"
135     PRINT "hello b"
150     ELSE
155       IF a$="c"
157       PRINT "hello c "
160       ELSE
170         PRINT "hello d"
180       END IF
190     END IF
200 END IF


On Fri, Jun 19, 2020 at 5:28 PM Giorgio Garabello via Ql-Users <
ql-users@lists.q-v-d.com> wrote:

>  For that I think it is easier to implement a new instruction (even an
> external extension) instead of modifying the current instruction.
>
> Il giorno ven 19 giu 2020 alle ore 12:19 pjwitte via Ql-Users <
> ql-users@lists.q-v-d.com> ha scritto:
>
> > On 19/06/2020 10:52, Giorgio Garabello via Ql-Users wrote:
> > >   "SELect ON" instruction
> > > I find it has a major flaw that will not allow you to manage
> alphanumeric
> > > variables,
> > > I unfortunately don't know the assemly
> > > Would someone be available to create an extension similar to SELECT
> (e.g.
> > > SELECT $) capable of handling strings?
> > > I understand that it is not simple .. :-(
> > >
> > > Giorgio
> >
> > Sadly, this is one of many improvements in Minerva BASIC that did not
> > make it into SBASIC. At least SBASIC no longer crashes on FOR i$ = 'a'
> > TO 'z'! or REPeat a$ .. It just errors. (As of V3.35, I think)
> >
> > Per
> >
> > _______________________________________________
> > QL-Users Mailing List
> >
> _______________________________________________
> QL-Users Mailing List
>
_______________________________________________
QL-Users Mailing List

Reply via email to