From 6 single program blocks make one Program!?
|
03-27-2017, 11:23 AM
(This post was last modified: 03-27-2017 11:26 AM by Didier Lachieze.)
Post: #2
|
|||
|
|||
RE: From 6 single program blocks make one Program!?
If you want to simulate the GOTO statement you can use a loop like this one:
Code: EXPORT Test() The variable Line is simulating the BASIC line number, each bloc is executed depending on the value of Line and at the end of each block you have to set Line to the value of the next bloc to be executed, this way you can “jump” to the line number you want. You exit the sequence by setting Line to 0. This should work but it is pretty cumbersome. It may be better to change your code to avoid the need of GOTO. See here for the original idea. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
From 6 single program blocks make one Program!? - Onieh - 03-27-2017, 10:13 AM
RE: From 6 single program blocks make one Program!? - Didier Lachieze - 03-27-2017 11:23 AM
RE: From 6 single program blocks make one Program!? - DrD - 03-27-2017, 12:22 PM
RE: From 6 single program blocks make one Program!? - Onieh - 03-29-2017, 07:13 AM
|
User(s) browsing this thread: 1 Guest(s)