We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GraphicsWindow.LastKey
#1
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
Reply


Messages In This Thread
GraphicsWindow.LastKey - by jrmrhrb00 - 01-15-2025, 01:37 PM
RE: GraphicsWindow.LastKey - by litdev - 01-15-2025, 02:09 PM
RE: GraphicsWindow.LastKey - by jrmrhrb00 - 01-15-2025, 02:58 PM
RE: GraphicsWindow.LastKey - by litdev - 01-15-2025, 03:18 PM
RE: GraphicsWindow.LastKey - by jrmrhrb00 - 01-15-2025, 03:58 PM
RE: GraphicsWindow.LastKey - by litdev - 01-15-2025, 05:05 PM
RE: GraphicsWindow.LastKey - by jrmrhrb00 - 01-15-2025, 05:33 PM
RE: GraphicsWindow.LastKey - by litdev - 01-15-2025, 06:47 PM
RE: GraphicsWindow.LastKey - by jrmrhrb00 - 01-15-2025, 07:56 PM
RE: GraphicsWindow.LastKey - by litdev - 01-15-2025, 08:43 PM
RE: GraphicsWindow.LastKey - by AbsoluteBeginner - 01-16-2025, 07:58 AM
RE: GraphicsWindow.LastKey - by litdev - 01-16-2025, 11:59 AM
RE: GraphicsWindow.LastKey - by jrmrhrb00 - 01-16-2025, 02:36 PM
RE: GraphicsWindow.LastKey - by z-s - 01-17-2025, 05:02 PM
RE: GraphicsWindow.LastKey - by litdev - 01-17-2025, 07:24 PM
RE: GraphicsWindow.LastKey - by z-s - 01-18-2025, 10:29 AM
RE: GraphicsWindow.LastKey - by litdev - 01-18-2025, 01:41 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)