Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shortest useful program
#12
so? then it only needs 2 lines:
Code:
10 a$ = inkey$
20 IF a$ = "" THEN GOTO 10

or if you wanted to do that silly "wait for key to be lifted" thing:

Code:
10 a$ = inkey$
20 IF inkey$ <> "" then b = 1 else b = 0
30 IF a$ = "" AND b=0 THEN GOTO 10 else if a$ <> "" and b = 1 then goto 20

but you're still using excess code. besides, if the user presses more than one key, who cares?
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply


Messages In This Thread
Shortest useful program - by xhantt - 08-10-2003, 03:02 AM
Shortest useful program - by toonski84 - 08-10-2003, 03:58 AM
Shortest useful program - by Moneo - 08-10-2003, 06:31 AM
Shortest useful program - by toonski84 - 08-10-2003, 08:54 AM
Shortest useful program - by xhantt - 08-10-2003, 10:09 AM
Shortest useful program - by ak00ma - 08-10-2003, 10:30 AM
Shortest useful program - by toonski84 - 08-10-2003, 10:42 AM
Shortest useful program - by xhantt - 08-10-2003, 09:49 PM
Shortest useful program - by ak00ma - 08-10-2003, 10:12 PM
Shortest useful program - by Phydaux - 08-11-2003, 02:08 AM
Shortest useful program - by Moneo - 08-11-2003, 03:22 AM
Shortest useful program - by toonski84 - 08-11-2003, 05:00 AM
Shortest useful program - by oracle - 08-11-2003, 05:10 AM
Shortest useful program - by Moneo - 08-11-2003, 06:25 AM
Shortest useful program - by toonski84 - 08-11-2003, 07:06 AM
Shortest useful program - by xhantt - 08-11-2003, 10:32 PM
Shortest useful program - by Agamemnus - 08-11-2003, 11:41 PM
Shortest useful program - by Moneo - 08-11-2003, 11:46 PM
Shortest useful program - by Moneo - 08-12-2003, 11:22 PM
Shortest useful program - by biostar - 08-16-2003, 01:07 AM
Shortest useful program - by oracle - 08-16-2003, 03:31 AM
Shortest useful program - by Moneo - 08-16-2003, 04:16 AM
Shortest useful program - by oracle - 08-16-2003, 06:45 AM
Shortest useful program - by Moneo - 08-16-2003, 07:46 AM
Shortest useful program - by whitetiger0990 - 08-16-2003, 09:03 AM
Shortest useful program - by Moneo - 08-16-2003, 09:48 AM
Shortest useful program - by ak00ma - 08-16-2003, 12:46 PM
Shortest useful program - by Moneo - 08-16-2003, 11:08 PM
Shortest useful program - by whitetiger0990 - 08-17-2003, 12:53 AM
Shortest useful program - by Moneo - 08-17-2003, 04:29 AM
Shortest useful program - by ak00ma - 08-17-2003, 10:59 AM
Shortest useful program - by oracle - 08-18-2003, 01:41 AM
Shortest useful program - by Moneo - 08-22-2003, 05:24 AM
Shortest useful program - by pr0gger - 08-23-2003, 03:32 AM
Shortest useful program - by whitetiger0990 - 08-23-2003, 03:43 AM
Shortest useful program - by Moneo - 08-23-2003, 04:07 AM
Shortest useful program - by otaku84 - 10-14-2003, 03:40 PM
Shortest useful program - by oracle - 10-15-2003, 12:49 AM
Shortest useful program - by seph - 10-15-2003, 02:49 AM
Shortest useful program - by SCM - 10-15-2003, 07:18 AM
Shortest useful program - by Moneo - 10-15-2003, 09:09 AM
Shortest useful program - by oracle - 10-15-2003, 10:27 AM
Shortest useful program - by Lanzaa - 10-16-2003, 06:25 AM
Shortest useful program - by seph - 10-16-2003, 07:18 AM
Shortest useful program - by oracle - 10-17-2003, 01:45 AM
Shortest useful program - by Dav - 10-17-2003, 04:11 AM
Shortest useful program - by Dav - 10-22-2003, 05:51 AM
Shortest useful program - by seph - 10-22-2003, 07:22 AM
Shortest useful program - by oracle - 10-22-2003, 10:42 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)