01-15-2025, 01:37 PM
This is a little confusing, but here goes!
I have a program that I want to rerun for a second or more times. So, I clear the GraphicsWindow, and tell it to rerun by using a button. The problem I am having is: in the first run I use this:
While key <> "Return"
key = GraphicsWindow.Lastkey
EndWhile
This is to hold the program until I hit the return key. That works just fine. Then steps in "GraphicsWindow.LastKey" That function is read only. The problem is there is no way to reset it in standard "Small Basic" and it remembers the key was used in the first round of the program. So, on the second round the program zips right through the while loop. To work properly GraphicsWindow.LastKey needs to reset for the second or more rounds of the program. I looked in the LitDev Extension. Didn't see any way to reset it.
Any suggestions of how to do it?
Maybe, LitDev could add it to the extension?
JR
I have a program that I want to rerun for a second or more times. So, I clear the GraphicsWindow, and tell it to rerun by using a button. The problem I am having is: in the first run I use this:
While key <> "Return"
key = GraphicsWindow.Lastkey
EndWhile
This is to hold the program until I hit the return key. That works just fine. Then steps in "GraphicsWindow.LastKey" That function is read only. The problem is there is no way to reset it in standard "Small Basic" and it remembers the key was used in the first round of the program. So, on the second round the program zips right through the while loop. To work properly GraphicsWindow.LastKey needs to reset for the second or more rounds of the program. I looked in the LitDev Extension. Didn't see any way to reset it.
Any suggestions of how to do it?
Maybe, LitDev could add it to the extension?
JR