In my application I’m building, I’d like for the first screen to be an UPDATE to an integer, but I’d like to have an option to press F2 to access a different kind of functionality in the program.
When I try it the logical way, I get buzzed at since the UPDATE is expecting INTEGER only input, and I’m pressing F2.
Can you UPDATE and READKEY successfully at the same time?
You’re trying to do it the old way with editing blocks – try reading up on event-driven programming, where the code describes events and what gets run when a certain event happens. The code would look something like this:
Better yet, don’t use “UPDATE”, do a “WAIT-FOR” instead.