Hello to the Forum,
What would be the syntax of a command to call “indexed procedures”?
Let me explain :
Consider an index variable ranging from 1 to 3, for example.
And three routines that would be called depending on the value of this index.
An “GOSUB Routine &1” style command to call routine1.
Is it possible ?
Thanks
------------------------------------------------------
Program structure:
i = 2 ‘identifier of the routine to call, which can vary from 1 to 3
…
GOSUB Routine &2 ‘ ???
Routine1
…
Return
Routine2
…
Return
Routine3
…
Return
What would be the syntax of a command to call “indexed procedures”?
Let me explain :
Consider an index variable ranging from 1 to 3, for example.
And three routines that would be called depending on the value of this index.
An “GOSUB Routine &1” style command to call routine1.
Is it possible ?
Thanks
------------------------------------------------------
Program structure:
i = 2 ‘identifier of the routine to call, which can vary from 1 to 3
…
GOSUB Routine &2 ‘ ???
Routine1
…
Return
Routine2
…
Return
Routine3
…
Return
Last edited: