Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error when checking
#6
You are testing for A$ and B$ to be empty ("") then exiting the DO Loop. If no key is pressed, then A$ and B$ both = "" and the do loop exits.


Code:
DO
  sleep 100
  A$=INKEY$

This will slow things down enough to get a keypress in...

However, as soon as the loop cycles again with no immediate keypress, it bails out again.

Maybe a logic restructure for what you want to accomplish is in order?
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply


Messages In This Thread
error when checking - by MNDRBNDR - 02-04-2005, 10:24 PM
error when checking - by Sterling Christensen - 02-04-2005, 10:26 PM
here ya go - by MNDRBNDR - 02-04-2005, 10:29 PM
this is it - by MNDRBNDR - 02-04-2005, 10:35 PM
error when checking - by Sterling Christensen - 02-04-2005, 10:56 PM
error when checking - by steven_basic - 02-04-2005, 11:06 PM
error when checking - by steven_basic - 02-04-2005, 11:19 PM
error when checking - by ShadowWolf - 02-04-2005, 11:20 PM
that was it - by MNDRBNDR - 02-04-2005, 11:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)